diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-12-09 10:49:00 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-12-09 10:49:00 +0100 |
commit | c782e7aa9e981a2f27db3f3afced5a6f10d6f8d9 (patch) | |
tree | 5dbc150b6c48a6f0e4d960430b55e7d4f2a955c1 /libavformat | |
parent | fe0416f8a1be660ef9a38cb378a593598d74a448 (diff) | |
download | ffmpeg-streaming-c782e7aa9e981a2f27db3f3afced5a6f10d6f8d9.zip ffmpeg-streaming-c782e7aa9e981a2f27db3f3afced5a6f10d6f8d9.tar.gz |
avformat/dhav: export average frame rate too
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dhav.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dhav.c b/libavformat/dhav.c index b069afc..9948783 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); |