[FFmpeg-cvslog] ffprobe: stop setting AVCodecContext.framerate

Anton Khirnov git at videolan.org
Mon Feb 22 12:17:24 EET 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Feb  8 12:22:13 2021 +0100| [82a2cbf820420bfd7f8df6284dcb94c415ce6f09] | committer: Anton Khirnov

ffprobe: stop setting AVCodecContext.framerate

That field is supposed to be exported by decoders, it makes no sense for
a user to set it.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=82a2cbf820420bfd7f8df6284dcb94c415ce6f09
---

 fftools/ffprobe.c | 1 -
 1 file changed, 1 deletion(-)

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",



More information about the ffmpeg-cvslog mailing list