aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-03-03 21:31:15 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-03-08 19:36:12 +0000
commit772f50c1f3e4a50ce3f35e31a6f0cd64e7cbe818 (patch)
treeb554e9e651f5cd8ae006b5cbd8375a4004fb81cb /libavcodec/mpegvideo.h
parent0eb8786eac1f4a2132ad80dc49f90d5f81665c5c (diff)
downloadffmpeg-772f50c1f3e4a50ce3f35e31a6f0cd64e7cbe818.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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index f88870052f..c858e074b4 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -892,7 +892,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);