ffmpeg: fix uninitialized variable warning
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 20 May 2012 09:30:51 +0000 (11:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 20 May 2012 09:35:08 +0000 (11:35 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index a05d3c4..6848f25 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2151,6 +2151,7 @@ static int poll_filters(void)
                     }
                     break;
                 }
+                frame_pts = AV_NOPTS_VALUE;
                 if (ost->enc->type == AVMEDIA_TYPE_VIDEO)
                     filtered_frame->pts = frame_pts = av_rescale_q(picref->pts, ist_pts_tb, AV_TIME_BASE_Q);
                 else if (picref->pts != AV_NOPTS_VALUE)