diff utils.c @ 3118:4410d9725469 libavformat

do not reset duration_error for all streams, only reset current stream, fix wrong_fps.gxf
author bcoudurier
date Thu, 06 Mar 2008 17:44:42 +0000
parents 74a63dbf5509
children b5e2ce291882
line wrap: on
line diff
--- a/utils.c	Thu Mar 06 13:40:29 2008 +0000
+++ b/utils.c	Thu Mar 06 17:44:42 2008 +0000
@@ -1932,7 +1932,7 @@
 //                if(st->codec->codec_type == CODEC_TYPE_VIDEO)
 //                    av_log(NULL, AV_LOG_ERROR, "%f\n", dur);
                 if(duration_count[index] < 2)
-                    memset(duration_error, 0, MAX_STREAMS * sizeof(*duration_error));
+                    memset(duration_error[index], 0, sizeof(*duration_error));
                 for(i=1; i<MAX_STD_TIMEBASES; i++){
                     int framerate= get_std_framerate(i);
                     int ticks= lrintf(dur*framerate/(1001*12));