mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
a26d0ffa18
commit
90cdec5e26
|
@ -619,6 +619,7 @@ static int sub2video_prepare(InputStream *ist)
|
||||||
ist->sub2video.frame = av_frame_alloc();
|
ist->sub2video.frame = av_frame_alloc();
|
||||||
if (!ist->sub2video.frame)
|
if (!ist->sub2video.frame)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
ist->sub2video.last_pts = INT64_MIN;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue