Fixed frame rate output value.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 14 Dec 2008 15:37:09 +0000 (16:37 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 14 Dec 2008 15:39:08 +0000 (16:39 +0100)
modules/codec/avcodec/video.c

index fffa754..fe44dd5 100644 (file)
@@ -151,8 +151,8 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
         }
     }
 
-    if( p_dec->fmt_out.video.i_frame_rate > 0 &&
-        p_dec->fmt_out.video.i_frame_rate_base > 0 )
+    if( p_dec->fmt_in.video.i_frame_rate > 0 &&
+        p_dec->fmt_in.video.i_frame_rate_base > 0 )
     {
         p_dec->fmt_out.video.i_frame_rate =
             p_dec->fmt_in.video.i_frame_rate;