[Ffmpeg-devel] handle cached frames

Måns Rullgård mru
Thu Apr 14 12:47:37 CEST 2005


"Ronald S. Bultje" <rbultje at ronald.bitfreak.net> writes:

> Hi,
>
> for MPEG-1/2/4 movies (and such), it seems like I'm supposed to call
> avframe_decode() with length=0 to get the remaining cached frames
> (B-frames and such). This works fine, but causes issues for Cinepak (and
> maybe more), which will continuously output the last frame (without
> indicating EOS). Should I handle this differently? If so, how?

Maybe it's enough to do it only if AVCodecContext.has_b_frames is
set.  I know of no other reason there would be any delayed frames.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list