mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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
This commit is contained in:
parent
8a84f759b4
commit
c75f8c4c9b
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-06-30 Jan Schmidt <jan.schmidt@sun.com>
|
||||
|
||||
* gst/rawparse/gstvideoparse.c:
|
||||
Fix size calculation for RGB buffers -> bpp is in bits, so divide by 8
|
||||
|
||||
2008-06-30 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/deinterlace2/Makefile.am:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue