avviddec: increase bottom padding for output frames

libav can write slightly after the plane end in some SIMD optimized
functions. The extra padding value needs to be at least 16+stride_align
for each plane, so just increase the bottom padding value for the output
frame.

https://bugzilla.gnome.org/show_bug.cgi?id=694299
This commit is contained in:
Arnaud Vrac 2013-07-18 16:11:16 +02:00 committed by Sebastian Dröge
parent 33a4d2cb4f
commit 4a2054c6aa

View file

@ -1516,6 +1516,10 @@ gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
align.padding_left = edge;
align.padding_right = width - GST_VIDEO_INFO_WIDTH (&state->info) - edge;
align.padding_bottom = height - GST_VIDEO_INFO_HEIGHT (&state->info) - edge;
/* add extra padding to match libav buffer allocation sizes */
align.padding_bottom++;
for (i = 0; i < GST_VIDEO_MAX_PLANES; i++)
align.stride_align[i] =
(linesize_align[i] > 0 ? linesize_align[i] - 1 : 0);