Commit 26a2d698 authored by michael's avatar michael

fixing coverity warnig CID: 253 (reading over the end of the aspect_ratio...

fixing coverity warnig CID: 253 (reading over the end of the aspect_ratio array for illegal aspect ratios)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5163 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b1c61db6
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment