gst/ffmpegcolorspace/gstffmpegcolorspace.c: D'oh, reference the palette data, not the palette structure.

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_chain):
D'oh, reference the palette data, not the palette structure.
Fixes color distortion in #132341.
This commit is contained in:
Ronald S. Bultje 2005-01-29 15:24:38 +00:00
parent a1e2e9442d
commit dd6ebdc5fe
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-01-29 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_chain):
D'oh, reference the palette data, not the palette structure.
Fixes color distortion in #132341.
2005-01-29 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2005-01-29 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/videoscale/gstvideoscale.c: (gst_videoscale_link): * gst/videoscale/gstvideoscale.c: (gst_videoscale_link):

View file

@ -368,7 +368,7 @@ gst_ffmpegcsp_chain (GstPad * pad, GstData * data)
GST_BUFFER_DATA (inbuf), GST_BUFFER_DATA (inbuf),
space->from_pixfmt, space->width, space->height); space->from_pixfmt, space->width, space->height);
if (space->palette) if (space->palette)
space->from_frame.data[1] = (uint8_t *) space->palette; space->from_frame.data[1] = (uint8_t *) space->palette->palette;
gst_ffmpegcsp_avpicture_fill (&space->to_frame, gst_ffmpegcsp_avpicture_fill (&space->to_frame,
GST_BUFFER_DATA (outbuf), GST_BUFFER_DATA (outbuf),
space->to_pixfmt, space->width, space->height); space->to_pixfmt, space->width, space->height);