Commit c782e7aa authored by Paul B Mahol's avatar Paul B Mahol

avformat/dhav: export average frame rate too

parent fe0416f8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment