You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/dhav: export average frame rate too
This commit is contained in:
@@ -288,6 +288,8 @@ static int dhav_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
st->codecpar->width = dhav->width;
|
st->codecpar->width = dhav->width;
|
||||||
st->codecpar->height = dhav->height;
|
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));
|
st->priv_data = dst = av_mallocz(sizeof(DHAVStream));
|
||||||
if (!st->priv_data)
|
if (!st->priv_data)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Reference in New Issue
Block a user