aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-13 23:46:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-13 23:46:47 +0000
commit4cb8574dc838e5b8adddf3f6ee18ccf8ece4483b (patch)
tree2e8eacd75bbcfafbb0793edd105cfde44ca73e0a /libavcodec
parent40c8602f64d57cade781473af26239a0ff33c2d2 (diff)
downloadffmpeg-4cb8574dc838e5b8adddf3f6ee18ccf8ece4483b.tar.gz
fixing coverity warnig CID: 253 (reading over the end of the aspect_ratio array for illegal aspect ratios)
Originally committed as revision 5163 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index b923d50c36..f120858268 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7104,7 +7104,7 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps){
if( aspect_ratio_idc == EXTENDED_SAR ) {
sps->sar.num= get_bits(&s->gb, 16);
sps->sar.den= get_bits(&s->gb, 16);
- }else if(aspect_ratio_idc < 16){
+ }else if(aspect_ratio_idc < 14){
sps->sar= pixel_aspect[aspect_ratio_idc];
}else{
av_log(h->s.avctx, AV_LOG_ERROR, "illegal aspect ratio\n");