]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: init sub2video.last_pts.
authorNicolas George <george@nsup.org>
Sat, 1 Nov 2014 13:38:02 +0000 (14:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Nov 2014 20:04:36 +0000 (21:04 +0100)
Get the heartbeat working when the video has negative timestamps.

Fix trac ticket #4062.

Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg_filter.c

index 2ba2d9be21696ca5e8c9e64a2e98b03aacd03b66..0555cf684a8cc46daf0cbbc822722d1f8776e037 100644 (file)
@@ -619,6 +619,7 @@ static int sub2video_prepare(InputStream *ist)
     ist->sub2video.frame = av_frame_alloc();
     if (!ist->sub2video.frame)
         return AVERROR(ENOMEM);
+    ist->sub2video.last_pts = INT64_MIN;
     return 0;
 }