Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
11075:2663fdcdb769 | 11076:4a95670ed5f1 |
---|---|
174 | 174 |
175 sps->timing_info_present_flag = get_bits1(&s->gb); | 175 sps->timing_info_present_flag = get_bits1(&s->gb); |
176 if(sps->timing_info_present_flag){ | 176 if(sps->timing_info_present_flag){ |
177 sps->num_units_in_tick = get_bits_long(&s->gb, 32); | 177 sps->num_units_in_tick = get_bits_long(&s->gb, 32); |
178 sps->time_scale = get_bits_long(&s->gb, 32); | 178 sps->time_scale = get_bits_long(&s->gb, 32); |
179 if(sps->num_units_in_tick-1 > 0x7FFFFFFEU || sps->time_scale-1 > 0x7FFFFFFEU){ | 179 if(!sps->num_units_in_tick || !sps->time_scale){ |
180 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); | 180 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); |
181 return -1; | 181 return -1; |
182 } | 182 } |
183 sps->fixed_frame_rate_flag = get_bits1(&s->gb); | 183 sps->fixed_frame_rate_flag = get_bits1(&s->gb); |
184 } | 184 } |