mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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:
parent
33a4d2cb4f
commit
4a2054c6aa
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue