Mercurial > libavcodec.hg
changeset 2440:cf97353f94c6 libavcodec
div by zero aspect fix
author | michael |
---|---|
date | Wed, 19 Jan 2005 13:24:43 +0000 |
parents | 6684c0e9e28f |
children | 358813ec4ca2 |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Jan 19 13:03:38 2005 +0000 +++ b/h264.c Wed Jan 19 13:24:43 2005 +0000 @@ -3469,6 +3469,8 @@ s->avctx->width = s->width; s->avctx->height = s->height; 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){ s->avctx->frame_rate = h->sps.time_scale;