[Libav-user] avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet) why most of the time frameFinished is zero ?
cyril poulet
xenosender at gmail.com
Tue May 27 12:34:36 CEST 2014
a packet rarely contains an entire frame. You have to feed the decoder
packets until a frame is finished.
frameFinished is the flag that tells you that a complete frame has been
gathered and decoded, and that you can now work on it
2014-05-26 10:36 GMT+02:00 sithruk sana <get2jils at gmail.com>:
> Dear all,
>
> I received a packet from rtsp by av_read_frame and decode it through
>
> avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet)
>
> After decoding i am checking the value of frameFinished.
>
> Most of the time i get the value of frameFinished is zero. May be around
> 50% of the packet.
>
>
> Can u hint me what could be the reason ?
>
> It is any way related to 'I', 'P', 'B' packet types ?
>
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140527/c550f5ce/attachment.html>
More information about the Libav-user
mailing list