summaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorJohn Brooks <john.brooks@bluecherry.net>2011-12-12 17:04:14 -0700
committerAnton Khirnov <anton@khirnov.net>2012-01-21 08:28:08 +0100
commit9b6aafba6c06ef62783dd5e9c5ed668f3a095128 (patch)
tree3a02ccf7a244c2326bdfe49bf1b5a853b2281cfb /libavcodec/options.c
parent5d95112d926760046bc0b07aeda5cfc766ba54a6 (diff)
mpegvideo: fix invalid memory access for small video dimensions
When either video dimension is only one macroblock, subtractions based on v_edge_pos and the macroblock size may be negative. In that situation, an unsigned comparison isn't sufficent to test for MV overruns, because a limit of (unsigned)-1 will let any other value pass. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/options.c')
0 files changed, 0 insertions, 0 deletions