Commit a1deae42 authored by michael's avatar michael

div by zero aspect fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3850 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ebe1aef6
...@@ -3469,6 +3469,8 @@ static int decode_slice_header(H264Context *h){ ...@@ -3469,6 +3469,8 @@ static int decode_slice_header(H264Context *h){
s->avctx->width = s->width; s->avctx->width = s->width;
s->avctx->height = s->height; s->avctx->height = s->height;
s->avctx->sample_aspect_ratio= h->sps.sar; s->avctx->sample_aspect_ratio= h->sps.sar;
if(!s->avctx->sample_aspect_ratio.den)
s->avctx->sample_aspect_ratio.den = 1;
if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){ if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){
s->avctx->frame_rate = h->sps.time_scale; s->avctx->frame_rate = h->sps.time_scale;
......
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