MCPcopy Create free account
hub / github.com/IENT/YUView / pushPacketToDecoder

Method pushPacketToDecoder

YUViewLib/src/ffmpeg/FFmpegVersionHandler.cpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290int FFmpegVersionHandler::pushPacketToDecoder(AVCodecContextWrapper &decCtx, AVPacketWrapper &pkt)
291{
292 if (!pkt)
293 return this->lib.avcodec.avcodec_send_packet(decCtx.getCodec(), nullptr);
294 else
295 return this->lib.avcodec.avcodec_send_packet(decCtx.getCodec(), pkt.getPacket());
296}
297
298int FFmpegVersionHandler::getFrameFromDecoder(AVCodecContextWrapper &decCtx, AVFrameWrapper &frame)
299{

Callers 1

pushAVPacketMethod · 0.80

Calls 2

getCodecMethod · 0.80
getPacketMethod · 0.80

Tested by

no test coverage detected