diff mbox series

[FFmpeg-devel,5/5] ffprobe: stop setting AVCodecContext.framerate

Message ID 20210208112828.27113-5-anton@khirnov.net
State Accepted
Commit 82a2cbf820420bfd7f8df6284dcb94c415ce6f09
Headers show
Series [FFmpeg-devel,1/5] ffprobe: remove an unnecessary deprecation guard | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov Feb. 8, 2021, 11:28 a.m. UTC
That field is supposed to be exported by decoders, it makes no sense for
a user to set it.
---
 fftools/ffprobe.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Paul B Mahol Feb. 8, 2021, 11:40 a.m. UTC | #1
probably ok
diff mbox series

Patch

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 6a3dd549ec..de70c20eb4 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -3034,7 +3034,6 @@  static int open_input_file(InputFile *ifile, const char *filename,
             }
 
             ist->dec_ctx->pkt_timebase = stream->time_base;
-            ist->dec_ctx->framerate = stream->avg_frame_rate;
 
             if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) {
                 av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n",