Browse Source

avformat/dhav: export average frame rate too

tags/n4.2
Paul B Mahol 7 years ago
parent
commit
c782e7aa9e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/dhav.c

+ 2
- 0
libavformat/dhav.c View 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);


Loading…
Cancel
Save