summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-13 07:46:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-13 07:46:06 +0000
commit2276785cfad24c8c8a7252cd374bd440a7a04567 (patch)
tree0c8e54359fdf9c87e4ec171135cae7d41f66abe9
parentb9d2bb5b2fa19c089c1fd6b75ec1525339d3d95c (diff)
fixing 1/0 if the headers are incomplete (like what M$ encoder generates)
Originally committed as revision 934 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h263.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 882f0ba294..5cf1733504 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -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++;