You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-06 06:27:36 +02:00
fftools/ffmpeg_filter: only flush vsync code if encoding actually started
Otherwise this has no effect. Will be useful in following commits.
This commit is contained in:
@ -1754,10 +1754,10 @@ int reap_filters(int flush)
|
|||||||
if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
|
if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
|
||||||
av_log(fgp, AV_LOG_WARNING,
|
av_log(fgp, AV_LOG_WARNING,
|
||||||
"Error in av_buffersink_get_frame_flags(): %s\n", av_err2str(ret));
|
"Error in av_buffersink_get_frame_flags(): %s\n", av_err2str(ret));
|
||||||
} else if (flush && ret == AVERROR_EOF) {
|
} else if (flush && ret == AVERROR_EOF && ofp->got_frame &&
|
||||||
if (av_buffersink_get_type(filter) == AVMEDIA_TYPE_VIDEO)
|
av_buffersink_get_type(filter) == AVMEDIA_TYPE_VIDEO)
|
||||||
enc_frame(ost, NULL);
|
enc_frame(ost, NULL);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ost->finished) {
|
if (ost->finished) {
|
||||||
|
Reference in New Issue
Block a user