Skip to content
Snippets Groups Projects
Commit 259af1b9 authored by Jindrich Makovicka's avatar Jindrich Makovicka Committed by Anton Khirnov
Browse files

mpegvideo: allocate sufficiently large scratch buffer for interlaced vid


MPV_decode_mb_internal needs 3 * 16 * linesize bytes of scratch buffer

For interlaced content, linesize is multiplied by two after the allocation
of the scratch buffer, and the dest_cr pointer ends past the buffer.

This patch makes ff_mpv_frame_size_alloc allocate a total of
(aligned line_size) * 2 * 16 * 3 bytes, which suffices even for the
interlaced case.

CC:libav-stable@libav.org

Signed-off-by: default avatarJindrich Makovicka <makovick@gmail.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent db8e336e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment