[FFmpeg-cvslog] ffmpeg: fix uninitialized variable warning

Michael Niedermayer git at videolan.org
Sun May 20 12:35:50 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 20 11:30:51 2012 +0200| [8364cb97193829dc3e14484c0aaadf59c0cafc8c] | committer: Michael Niedermayer

ffmpeg: fix uninitialized variable warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8364cb97193829dc3e14484c0aaadf59c0cafc8c
---

 ffmpeg.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index a05d3c4..6848f25 100644
--- 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)



More information about the ffmpeg-cvslog mailing list