Mercurial > libavcodec.hg
changeset 662:5a158f0d1981 libavcodec
fixing 1/0 if the headers are incomplete (like what M$ encoder generates)
author | michaelni |
---|---|
date | Fri, 13 Sep 2002 07:46:06 +0000 |
parents | a0901e38c564 |
children | 76fef3b11680 |
files | h263.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Thu Sep 12 18:28:17 2002 +0000 +++ b/h263.c Fri Sep 13 07:46:06 2002 +0000 @@ -3989,6 +3989,11 @@ 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++;