diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-03-03 21:31:15 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-03-05 14:49:16 +0100 |
commit | 66624ed6319cb1a959256fe1a717fec5b748fbfa (patch) | |
tree | e10aa0329f8850e7f67bc5978a830e7f66118ca6 /libavcodec/mpegvideo.h | |
parent | 9c09fbd8053292267cdc4b542913ceced43ea3a9 (diff) | |
download | ffmpeg-streaming-66624ed6319cb1a959256fe1a717fec5b748fbfa.zip ffmpeg-streaming-66624ed6319cb1a959256fe1a717fec5b748fbfa.tar.gz |
rv10: check size of s->mb_width * s->mb_height
If it doesn't fit into 12 bits it triggers an assertion.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index e389038..a412ec7 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -840,7 +840,7 @@ extern const uint8_t ff_aic_dc_scale_table[32]; extern const uint8_t ff_h263_chroma_qscale_table[32]; /* rv10.c */ -void ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number); +int ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number); int ff_rv_decode_dc(MpegEncContext *s, int n); void ff_rv20_encode_picture_header(MpegEncContext *s, int picture_number); |