Commit 7d7f3618 authored by Ronald S. Bultje's avatar Ronald S. Bultje

ext/ffmpeg/gstffmpegdec.c: Small parsing fix in comb. with ffdemux_mpeg.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):
Small parsing fix in comb. with ffdemux_mpeg.
parent 52ed38c1
2004-12-17 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):
Small parsing fix in comb. with ffdemux_mpeg.
2004-12-17 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_init),
......
......@@ -498,12 +498,9 @@ gst_ffmpegdec_chain (GstPad * pad, GstData * _data)
expected_ts / (GST_SECOND / AV_TIME_BASE),
expected_ts / (GST_SECOND / AV_TIME_BASE));
if (res == 0)
if (res == 0 || size == 0)
break;
else if (size == 0) {
bsize = 0;
break;
} else {
else {
bsize -= res;
bdata += res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment