[Libav-user] h264 illegal short term buffer state detected

wm4 nfxjfg at googlemail.com
Thu Mar 27 18:23:05 CET 2014


On Thu, 27 Mar 2014 14:01:40 -0300
Gonzalo Garramuno <ggarra13 at gmail.com> wrote:

> On 27/03/14 11:55, wm4 wrote:
> > If by flushing the caches you mean dropping packet data and/or
> > flushing the decoder just for pausing, you can't do that.
> I drop the packets and flush the decoder.
> > Either you don't drop/flush anything, or you have to issue a seek to
> > resume playback properly.
> I do exactly the second option.  I issue a seek before playback.  I 
> found that ensures a better audio/video sync.  Yet I get the error.
> 
> The ffmpeg error appears but visually I see no change ( the video is 
> normal ).  It seems the error should be a warning instead.

Then you should see the same error when seeking with ffplay. (AFAIK you
have to click with the mouse to seek or something.)


More information about the Libav-user mailing list