[MPlayer-dev-eng] [PATCH] Fix yuv4mpeg output, remove spurious first frame.

D Richard Felker III dalias at aerifal.cx
Sat Jun 21 03:02:04 CEST 2003


On Sat, Jun 21, 2003 at 02:39:07AM +0200, Linards Ticmanis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> D Richard Felker III wrote:
> 
> > Yes, but I don't think you quite understand it right. The first blank
> > frame mplayer gives you is not there in the source; it's caused by the
> > way B frame decoding works. BUT (!!!) the later blank frames ARE
> > actually there in the source. AVI and probably several other formats
> > allow insertion of "blank" (0-byte-long) frames to indicate that the
> > previous one should be repeated. If you just go removing these, A/V
> > sync could break all over the place!!
> 
> I didn't plan on removing anything but the spurious first frame - an
> only if and when it's spurious, which is not always the case as I now
> learned.

Hm... Actually, I think a blank frame is spurious *exactly* when it's
the first frame played. Repeat last frame makes no sense if there's no
last frame...

Rich



More information about the MPlayer-dev-eng mailing list