# HG changeset patch # User michael # Date 1106141083 0 # Node ID cf97353f94c6c97af3a2b88c6e3f5415adf8df0d # Parent 6684c0e9e28fa8f4ad82090e02e487d65de60d9b div by zero aspect fix diff -r 6684c0e9e28f -r cf97353f94c6 h264.c --- 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;