dvdsubdec: allocate correct amount of memory for bitmap
authorAndreas Frisch <fraxinas@opendreambox.org>
Tue, 30 Oct 2012 12:39:52 +0000 (13:39 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 30 Oct 2012 13:28:09 +0000 (13:28 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=687192

gst/dvdsub/gstdvdsubdec.c

index 2a8b9a3..b26a20b 100644 (file)
@@ -691,7 +691,7 @@ gst_send_subtitle_frame (GstDvdSubDec * dec, GstClockTime end_ts)
   }
 
   out_buf =
-      gst_buffer_new_allocate (NULL, 4 * GST_VIDEO_INFO_SIZE (&dec->info),
+      gst_buffer_new_allocate (NULL, GST_VIDEO_INFO_SIZE (&dec->info),
       &params);
   gst_video_frame_map (&frame, &dec->info, out_buf, GST_MAP_READWRITE);