summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2008-06-30 19:19:26 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-06-30 19:19:26 +0000
commitc75f8c4c9b0a92367cd01f9337a99f63f973a8ef (patch)
treed0f43cc0e5e9e8a7068bb0ae3f14c1cdc001e591 /gst
parent8a84f759b417603d2b29692d0a0846de83da1a90 (diff)
downloadgst-plugins-bad-c75f8c4c9b0a92367cd01f9337a99f63f973a8ef.tar.gz
gst-plugins-bad-c75f8c4c9b0a92367cd01f9337a99f63f973a8ef.tar.bz2
gst-plugins-bad-c75f8c4c9b0a92367cd01f9337a99f63f973a8ef.zip
gst/rawparse/gstvideoparse.c: Fix size calculation for RGB buffers -> bpp is in bits, so divide by 8
Original commit message from CVS: * gst/rawparse/gstvideoparse.c: Fix size calculation for RGB buffers -> bpp is in bits, so divide by 8
Diffstat (limited to 'gst')
-rw-r--r--gst/rawparse/gstvideoparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rawparse/gstvideoparse.c b/gst/rawparse/gstvideoparse.c
index 9d84e8a3..3221c0ad 100644
--- a/gst/rawparse/gstvideoparse.c
+++ b/gst/rawparse/gstvideoparse.c
@@ -369,9 +369,9 @@ gst_video_parse_update_frame_size (GstVideoParse * vp)
|| vp->format == GST_VIDEO_PARSE_FORMAT_UYVY) {
framesize = GST_ROUND_UP_4 (vp->width * 2) * vp->height;
} else if (vp->format == GST_VIDEO_PARSE_FORMAT_RGB) {
- framesize = GST_ROUND_UP_4 (vp->width * vp->bpp) * vp->height;
+ framesize = GST_ROUND_UP_4 (vp->width * vp->bpp / 8) * vp->height;
} else {
- framesize = GST_ROUND_UP_4 (vp->width * vp->bpp) * vp->height;
+ framesize = GST_ROUND_UP_4 (vp->width * vp->bpp / 8) * vp->height;
}
gst_raw_parse_set_framesize (GST_RAW_PARSE (vp), framesize);