dvdsubdec: allocate correct amount of memory for bitmap

https://bugzilla.gnome.org/show_bug.cgi?id=687192
This commit is contained in:
Andreas Frisch 2012-10-30 13:39:52 +01:00 committed by Tim-Philipp Müller
parent b979e19af7
commit 619d4db672

View file

@ -691,7 +691,7 @@ gst_send_subtitle_frame (GstDvdSubDec * dec, GstClockTime end_ts)
} }
out_buf = 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); &params);
gst_video_frame_map (&frame, &dec->info, out_buf, GST_MAP_READWRITE); gst_video_frame_map (&frame, &dec->info, out_buf, GST_MAP_READWRITE);