[FFmpeg-cvslog] avformat/evcdec: don't set AVCodecParameters.framerate

James Almer git at videolan.org
Tue Jun 20 17:35:19 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jun 17 22:19:16 2023 -0300| [3f48815501942d3cd65eab2d61dbe99c4328fd9b] | committer: James Almer

avformat/evcdec: don't set AVCodecParameters.framerate

It's not necessary. Setting AVStream.avg_frame_rate is enough.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/evcdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/evcdec.c b/libavformat/evcdec.c
index 41b0bceb0c..890babd3cb 100644
--- a/libavformat/evcdec.c
+++ b/libavformat/evcdec.c
@@ -157,7 +157,6 @@ static int evc_read_header(AVFormatContext *s)
     sti->need_parsing = AVSTREAM_PARSE_HEADERS;
 
     st->avg_frame_rate = c->framerate;
-    st->codecpar->framerate = c->framerate;
 
     // taken from rawvideo demuxers
     avpriv_set_pts_info(st, 64, 1, 1200000);



More information about the ffmpeg-cvslog mailing list