Mercurial > libavcodec.hg
diff h264_ps.c @ 11076:4a95670ed5f1 libavcodec
Fix large timebases.
Fixed issue1633
author | michael |
---|---|
date | Thu, 04 Feb 2010 15:30:37 +0000 |
parents | 042a38ba02ad |
children | 68fa9b353337 |
line wrap: on
line diff
--- a/h264_ps.c Thu Feb 04 14:26:57 2010 +0000 +++ b/h264_ps.c Thu Feb 04 15:30:37 2010 +0000 @@ -176,7 +176,7 @@ if(sps->timing_info_present_flag){ sps->num_units_in_tick = get_bits_long(&s->gb, 32); sps->time_scale = get_bits_long(&s->gb, 32); - if(sps->num_units_in_tick-1 > 0x7FFFFFFEU || sps->time_scale-1 > 0x7FFFFFFEU){ + if(!sps->num_units_in_tick || !sps->time_scale){ av_log(h->s.avctx, AV_LOG_ERROR, "time_scale/num_units_in_tick invalid or unsupported (%d/%d)\n", sps->time_scale, sps->num_units_in_tick); return -1; }