ext/ffmpeg/gstffmpegdec.c: If we have a parser and we did not consume any of the...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 4 Sep 2008 14:08:50 +0000 (14:08 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 4 Sep 2008 14:08:50 +0000 (14:08 +0000)
commitd16e6f1eccf746c60333f101014b8bf5d35bb1c5
tree81f8fe6f6e7c51ab121f81e7aeb52eefa08dda89
parent5162694c1e4f8f2414c22e5107817e9fbbd321c6
ext/ffmpeg/gstffmpegdec.c: If we have a parser and we did not consume any of the bytes of a new buffer, make sure we ...

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame),
(gst_ffmpegdec_chain):
If we have a parser and we did not consume any of the bytes of a new
buffer, make sure we submit the buffer again with its original timestamp
instead of a -1 timestamp. Fixes various h264 cases with reordered
frames.
If we have a discont and a timestamp but the first buffer after the
discont did not produce any data, make sure we set the timestamp on the
next buffer instead. Fixes initial timestamp on realaudio in many cases.
ChangeLog
ext/ffmpeg/gstffmpegdec.c