summaryrefslogtreecommitdiff
path: root/ffmpeg_filter.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2014-11-01 14:38:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-05 21:04:36 +0100
commit90cdec5e2698973fdb6643c1d66c7254478929f3 (patch)
treec5b3d52e9dc463434575ecd3e344f4291fa26a01 /ffmpeg_filter.c
parenta26d0ffa18dbbd29555a971130307adf397e0e29 (diff)
downloadffmpeg-90cdec5e2698973fdb6643c1d66c7254478929f3.tar.gz
ffmpeg: init sub2video.last_pts.
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>
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r--ffmpeg_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index 2ba2d9be21..0555cf684a 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -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;
}