Commit b53a7fb5 authored by michaelni's avatar michaelni

fixing 1/0 if the headers are incomplete (like what M$ encoder generates)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@934 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 139f75f1
......@@ -3989,6 +3989,11 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
s->low_delay=0;
}
// printf("pic: %d, qpel:%d part:%d resync:%d\n", s->pict_type, s->quarter_sample, s->data_partitioning, s->resync_marker);
if(s->time_increment_resolution==0){
s->time_increment_resolution=1;
// fprintf(stderr, "time_increment_resolution is illegal\n");
}
time_incr=0;
while (get_bits1(&s->gb) != 0)
time_incr++;
......
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