avformat/dhav: export average frame rate too
authorPaul B Mahol <onemda@gmail.com>
Sun, 9 Dec 2018 09:49:00 +0000 (10:49 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 9 Dec 2018 09:49:00 +0000 (10:49 +0100)
libavformat/dhav.c

index b069afc..9948783 100644 (file)
@@ -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);