[Libav-user] Frames corruption when seeking...

Jean-Yves Avenard jyavenard at gmail.com
Thu Jun 5 03:41:47 CEST 2014

On 5 June 2014 03:46, wm4 <nfxjfg at googlemail.com> wrote:

> My hw doesn't do mpeg4, so I have no way to reproduce.

Interestingly, I was googling for something else entirely (ffmpeg
vdpau render2) and stumble upon this thread:

What he describes is exactly what I experience...

but the discussion stops short, and new news since.

Otherwise, back to the original topic of my message and frames corruption.
I can now reproduced it consistently with VC-1 videos only....

I was checking what xbmc was doing, and saw this comment in their
code, in their draw slice code:
  // ffmpeg vc-1 decoder does not flush, make sure the data buffer is
still valid

Where they check if the surface is still valid and just ignore it if it is...

I'll have to implement something similar as a work-around.

But shouldn't VC-1 decoder properly flushing frames be the proper solution?

More information about the Libav-user mailing list