gst/ffmpegcolorspace/gstffmpegcolorspace.c: Remove old leftover that shouldn't be there...

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_chain):
Remove old leftover that shouldn't be there...
This commit is contained in:
Ronald S. Bultje 2004-12-01 15:13:47 +00:00
parent 5e10a662b3
commit b74999eddc
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-12-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_chain):
Remove old leftover that shouldn't be there...
2004-12-01 Sebastien Cote <sc5@hermes.usherb.ca> 2004-12-01 Sebastien Cote <sc5@hermes.usherb.ca>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -357,9 +357,8 @@ gst_ffmpegcsp_chain (GstPad * pad, GstData * data)
if (space->from_pixfmt == space->to_pixfmt) { if (space->from_pixfmt == space->to_pixfmt) {
outbuf = inbuf; outbuf = inbuf;
} else { } else {
#define ROUND_UP_4(x) (((x) + 3) & ~3)
guint size = avpicture_get_size (space->to_pixfmt, guint size = avpicture_get_size (space->to_pixfmt,
ROUND_UP_4 (space->width), ROUND_UP_4 (space->height)); space->width, space->height);
outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, size); outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, size);