summaryrefslogtreecommitdiffstats
path: root/libavformat/rpl.c
diff options
context:
space:
mode:
authorCameron Cawley <ccawley2011@gmail.com>2019-06-30 00:00:44 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-07-05 18:14:11 +0200
commit0cbdedbd2fc2211d0477c32c30f12e7aad4443de (patch)
treeada4b3ac69057bc8bbb8448f1f1552ee39a2430a /libavformat/rpl.c
parent1f8336fd985de3e2e49526e703da0820cd6abdce (diff)
downloadffmpeg-streaming-0cbdedbd2fc2211d0477c32c30f12e7aad4443de.zip
ffmpeg-streaming-0cbdedbd2fc2211d0477c32c30f12e7aad4443de.tar.gz
avformat/rpl: Calculate the duration of the video track
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rpl.c')
-rw-r--r--libavformat/rpl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index dbbcd13..17b45e3 100644
--- a/libavformat/rpl.c
+++ b/libavformat/rpl.c
@@ -269,8 +269,10 @@ static int rpl_read_header(AVFormatContext *s)
read_line_and_int(pb, &error); // (file index)
error |= read_line(pb, line, sizeof(line)); // offset to "helpful" sprite
error |= read_line(pb, line, sizeof(line)); // size of "helpful" sprite
- if (vst)
+ if (vst) {
error |= read_line(pb, line, sizeof(line)); // offset to key frame list
+ vst->duration = number_of_chunks * rpl->frames_per_chunk;
+ }
// Read the index
avio_seek(pb, chunk_catalog_offset, SEEK_SET);
OpenPOWER on IntegriCloud