ext/ffmpeg/gstffmpegcodecmap.c: Buffers aren't boxed types any longer.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_get_palette):
Buffers aren't boxed types any longer.
This commit is contained in:
Tim-Philipp Müller 2006-02-04 13:08:10 +00:00
parent c161d30d87
commit a479380146
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-02-04 Tim-Philipp Müller <tim at centricular dot net>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_get_palette):
Buffers aren't boxed types any longer.
2006-02-03 Edgard Lima <edgard.lima@indt.org.br>
* ext/ffmpeg/gstffmpegenc.c:

View file

@ -47,7 +47,7 @@ gst_ffmpeg_get_palette (const GstCaps *caps, AVCodecContext *context)
/* do we have a palette? */
if ((palette_v = gst_structure_get_value (str,
"palette_data")) && context) {
palette = g_value_get_boxed (palette_v);
palette = gst_value_get_buffer (palette_v);
if (GST_BUFFER_SIZE (palette) >= 256 * 4) {
if (context->palctrl)
av_free (context->palctrl);