mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/svq3: Reject dx/dy beyond 16bit
The code does use 16bit sized arrays later so larger deltas would not work
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 48b3117844
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
65a9d0c66c
commit
78fd652af4
@ -551,7 +551,7 @@ static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode,
|
||||
dy = get_interleaved_se_golomb(&s->gb_slice);
|
||||
dx = get_interleaved_se_golomb(&s->gb_slice);
|
||||
|
||||
if (dx == INVALID_VLC || dy == INVALID_VLC) {
|
||||
if (dx != (int16_t)dx || dy != (int16_t)dy) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "invalid MV vlc\n");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user