ext/ffmpeg/gstffmpegdec.c: ... can't adjust buffer size of NULL buffers though (as happens when seeking in video from...

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame):
... can't adjust buffer size of NULL buffers though
(as happens when seeking in video from #327075).
This commit is contained in:
Tim-Philipp Müller 2006-02-24 19:19:01 +00:00
parent 2375ddee97
commit 2f6def3134
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-02-24 Tim-Philipp Müller <tim at centricular dot net>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame):
... can't adjust buffer size of NULL buffers though
(as happens when seeking in video from #327075).
2006-02-24 Michael Smith <msmith@fluendo.com>
* autogen.sh:

View file

@ -986,7 +986,7 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec,
}
/* palette is not part of raw video frame in gst and the size
* of the outgoing buffer needs to be adjusted accordingly */
if (ffmpegdec->context->palctrl != NULL)
if (ffmpegdec->context->palctrl != NULL && outbuf != NULL)
GST_BUFFER_SIZE (outbuf) -= AVPALETTE_SIZE;
break;
}