summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-03-31 17:10:55 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-23 11:53:19 +0200
commit4403851ca92d2eedb098a27cf91744e7e234c136 (patch)
tree81436ca00ac078e3e6ef9bd6148fea8ecfb4e32d /fftools/ffmpeg_mux.c
parent4cd19eaffa1fba01a7e8622a0f47f210ca4e8bcf (diff)
fftools/ffmpeg: only set OutputStream.frame_number for video encoding
It is unused otherwise. Rename the field to vsync_frame_number to better reflect its current purpose.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 56444770bf..87c7bdc4e3 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -232,18 +232,8 @@ static void submit_packet(OutputFile *of, OutputStream *ost, AVPacket *pkt)
void of_submit_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
{
- AVStream *st = ost->st;
int ret;
- if (pkt) {
- /*
- * Counting encoded video frames needs to be done separately because of
- * reordering, see do_video_out().
- */
- if (!(st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && ost->encoding_needed))
- ost->frame_number++;
- }
-
if (of->mux->header_written) {
submit_packet(of, ost, pkt);
} else {