MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / decode_get_packet

Function decode_get_packet

libavcodec/decode.c:226–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224#endif
225
226static int decode_get_packet(AVCodecContext *avctx, AVPacket *pkt)
227{
228 AVCodecInternal *avci = avctx->internal;
229 int ret;
230
231 ret = av_bsf_receive_packet(avci->bsf, pkt);
232 if (ret < 0)
233 return ret;
234
235 if (!(ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) {
236 ret = extract_packet_props(avctx->internal, pkt);
237 if (ret < 0)
238 goto finish;
239 }
240
241 ret = apply_param_change(avctx, pkt);
242 if (ret < 0)
243 goto finish;
244
245 return 0;
246finish:
247 av_packet_unref(pkt);
248 return ret;
249}
250
251int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt)
252{

Callers 1

ff_decode_get_packetFunction · 0.85

Calls 5

av_bsf_receive_packetFunction · 0.85
ffcodecFunction · 0.85
extract_packet_propsFunction · 0.85
apply_param_changeFunction · 0.85
av_packet_unrefFunction · 0.85

Tested by

no test coverage detected