diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-02-25 23:04:55 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-02-25 23:10:14 +0100 |
commit | e937457b7b63e3b2647ec60b794d1fafcf1e79b9 (patch) | |
tree | 875084c9d286f95ba8c5ea597d923e27c1c90cd5 /libavformat/imx.c | |
parent | 34c805c0fe5ce8ce2ab8530192e103e471c5f0fe (diff) |
avformat/imx: set video stream duration
Diffstat (limited to 'libavformat/imx.c')
-rw-r--r-- | libavformat/imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/imx.c b/libavformat/imx.c index c7778a91ab..d203ed7a28 100644 --- a/libavformat/imx.c +++ b/libavformat/imx.c @@ -66,6 +66,7 @@ static int simbiosis_imx_read_header(AVFormatContext *s) vst->codecpar->format = AV_PIX_FMT_PAL8; vst->codecpar->codec_id = AV_CODEC_ID_SIMBIOSIS_IMX; vst->start_time = 0; + vst->duration = vst->nb_frames = avio_rl32(pb); rate = avio_rl16(pb); avio_skip(pb, 12); |