From: <bi...@ke...> - 2007-01-19 09:49:07
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: bilboed Date: Fri Jan 19 2007 09:48:59 UTC Log message: * gst/smpte/gstsmpte.c: (gst_smpte_collected): Allocate buffers of the right size. The proper size of a I420 buffer in bytes is: width * height * 3 ------------------ 2 Modified files: . : ChangeLog gst/smpte : gstsmpte.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.2696&r2=1.2697 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/smpte/gstsmpte.c.diff?r1=1.33&r2=1.34 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.2696 retrieving revision 1.2697 diff -u -d -r1.2696 -r1.2697 --- ChangeLog 18 Jan 2007 18:37:39 -0000 1.2696 +++ ChangeLog 19 Jan 2007 09:48:47 -0000 1.2697 @@ -1,3 +1,13 @@ +2007-01-19 Edward Hervey <ed...@fl...> + + * gst/smpte/gstsmpte.c: (gst_smpte_collected): + Allocate buffers of the right size. + The proper size of a I420 buffer in bytes is: + + width * height * 3 + ------------------ + 2 2007-01-18 Tim-Philipp Müller <tim at centricular dot net> * gst/smpte/gstsmpte.c: (gst_smpte_init): Index: gstsmpte.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/smpte/gstsmpte.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- gstsmpte.c 18 Jan 2007 18:37:39 -0000 1.33 +++ gstsmpte.c 19 Jan 2007 09:48:47 -0000 1.34 @@ -436,17 +436,17 @@ if (in1 == NULL) { /* if no input, make picture black */ - in1 = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3); + in1 = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3 / 2); fill_i420 (GST_BUFFER_DATA (in1), smpte->width, smpte->height, 7); } if (in2 == NULL) { /* if no input, make picture white */ - in2 = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3); + in2 = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3 / 2); fill_i420 (GST_BUFFER_DATA (in2), smpte->width, smpte->height, 0); if (smpte->position < smpte->end_position) { - outbuf = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3); + outbuf = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3 / 2); /* set caps if not done yet */ if (!GST_PAD_CAPS (smpte->srcpad)) { |