]> git.sesse.net Git - vlc/commit
Fix glitching at start of stream playback
authorAlex Woods <alex@packetship.com>
Tue, 18 Mar 2014 13:28:37 +0000 (13:28 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 21 Mar 2014 07:53:01 +0000 (09:53 +0200)
commitb9883cb9a2f1e455eeeaa94be072364d665e13c7
treee06f1ef4efe89d5282c4b49c6159e15f306cf4a5
parent7ebdca36486059c1ba2c936fbb938a2de742ba0a
Fix glitching at start of stream playback

This patch fixes a problem that occurs at the start of playback of MPEG2
streams.  The symptom is that an initial good frame will display and
then the video appears to skip back a frame or two and some
macroblocking is observed. The stream then plays correctly. This is
really obvious when switching between SAPed multicast streams, where
you're jumping right in to a lot of movement and probably not starting
with an I frame.

The issue appears to be some code introduced way back in 2004 (commit
eaefb8508dba22fb04193241347a072caac34cf1) which resubmits data to the
video codec. The commit notes suggest it was to avoid dropping the first
I frame, but I see no obviously lost I frames after removing the code
with my test samples. Presumably this was a work-around for a libavcodec
issue that is no longer required.

Therefore, this patch basically just reverts the 2004 commit in its
current form.

Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
modules/codec/avcodec/video.c