Message ID | 20190629230044.28388-2-ccawley2011@gmail.com |
---|---|
State | Accepted |
Commit | 0cbdedbd2fc2211d0477c32c30f12e7aad4443de |
Headers | show |
On Sun, Jun 30, 2019 at 12:00:44AM +0100, Cameron Cawley wrote: > --- > libavformat/rpl.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libavformat/rpl.c b/libavformat/rpl.c > index 579ab4f57e..d31c7f09ad 100644 > --- a/libavformat/rpl.c > +++ b/libavformat/rpl.c > @@ -280,8 +280,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); will apply thanks [...]
diff --git a/libavformat/rpl.c b/libavformat/rpl.c index 579ab4f57e..d31c7f09ad 100644 --- a/libavformat/rpl.c +++ b/libavformat/rpl.c @@ -280,8 +280,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);