From c782e7aa9e981a2f27db3f3afced5a6f10d6f8d9 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 9 Dec 2018 10:49:00 +0100 Subject: avformat/dhav: export average frame rate too --- libavformat/dhav.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/dhav.c') diff --git a/libavformat/dhav.c b/libavformat/dhav.c index b069afc713..9948783c0b 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -288,6 +288,8 @@ static int dhav_read_packet(AVFormatContext *s, AVPacket *pkt) } st->codecpar->width = dhav->width; st->codecpar->height = dhav->height; + st->avg_frame_rate.num = dhav->frame_rate; + st->avg_frame_rate.den = 1; st->priv_data = dst = av_mallocz(sizeof(DHAVStream)); if (!st->priv_data) return AVERROR(ENOMEM); -- cgit v1.2.3