nutdec: set duration_estimation_method
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Jun 2012 16:58:52 +0000 (18:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Jun 2012 16:58:52 +0000 (18:58 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutdec.c

index 88eb3b8..f3da58a 100644 (file)
@@ -568,6 +568,8 @@ static int64_t find_duration(NUTContext *nut, int64_t filesize)
         duration = FFMAX(duration, ts);
         pos++;
     }
+    if(duration > 0)
+        s->duration_estimation_method = AVFMT_DURATION_FROM_PTS;
     return duration;
 }