FFMPEG: Fix building with older versions that need FFMPEG_USE_DURATION_WORKAROUND

This commit is contained in:
2021-08-24 15:15:21 +02:00
parent 3c82725d74
commit 7aff40f410

View File

@@ -1248,7 +1248,7 @@ static void flush_ffmpeg(AVCodecContext *c, AVStream *stream, AVFormatContext *o
packet->stream_index = stream->index; packet->stream_index = stream->index;
av_packet_rescale_ts(packet, c->time_base, stream->time_base); av_packet_rescale_ts(packet, c->time_base, stream->time_base);
# ifdef FFMPEG_USE_DURATION_WORKAROUND # ifdef FFMPEG_USE_DURATION_WORKAROUND
my_guess_pkt_duration(context->outfile, stream, packet); my_guess_pkt_duration(outfile, stream, packet);
# endif # endif
int write_ret = av_interleaved_write_frame(outfile, packet); int write_ret = av_interleaved_write_frame(outfile, packet);