Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-07 14:02:39 +0300
committerAnton Khirnov <anton@khirnov.net>2020-12-10 11:44:40 +0300
commit63c2e500d23a9348de19a402b8e256d8ec56c5bc (patch)
tree8f7c66c2280e47791f4c26c0ae70951e1760533b /libavformat/img2dec.c
parentd4751d8c630983e6343c3100debb5de80be50ac3 (diff)
img2dec: export avg_frame_rate
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index a08d4f7977..ccb933ae33 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -220,8 +220,10 @@ int ff_img_read_header(AVFormatContext *s1)
avpriv_set_pts_info(st, 64, 1, 1000000000);
} else if (s->ts_from_file)
avpriv_set_pts_info(st, 64, 1, 1);
- else
+ else {
avpriv_set_pts_info(st, 64, s->framerate.den, s->framerate.num);
+ st->avg_frame_rate = s->framerate;
+ }
if (s->width && s->height) {
st->codecpar->width = s->width;