summaryrefslogtreecommitdiff
path: root/libavformat/argo_brp.c
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2020-09-26 12:21:45 +1000
committerZane van Iperen <zane@zanevaniperen.com>2020-09-27 09:11:36 +1000
commitce30c3d5b9601ccb7d94ce0cc7ffe947264509cb (patch)
treee789ae299fadbe233245c24451ef98373efa201e /libavformat/argo_brp.c
parent3ffb15a105f88544b6b93bb32c9ac9f62b90f456 (diff)
avformat/argo_brp: use header frame counts
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavformat/argo_brp.c')
-rw-r--r--libavformat/argo_brp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/argo_brp.c b/libavformat/argo_brp.c
index af64a0d6dc..76b4da2e66 100644
--- a/libavformat/argo_brp.c
+++ b/libavformat/argo_brp.c
@@ -237,6 +237,8 @@ static int argo_brp_read_header(AVFormatContext *s)
avpriv_request_sample(s, "depth == %u", bvid->depth);
return AVERROR_PATCHWELCOME;
}
+
+ st->nb_frames = bvid->num_frames;
} else if (hdr->codec_id == BRP_CODEC_ID_BASF) {
/*
* It would make the demuxer significantly more complicated
@@ -255,6 +257,8 @@ static int argo_brp_read_header(AVFormatContext *s)
if ((ret = ff_argo_asf_validate_file_header(s, &hdr->extradata.basf)) < 0)
return ret;
+
+ st->nb_frames = hdr->extradata.basf.num_chunks;
} else if (hdr->codec_id == BRP_CODEC_ID_MASK) {
ArgoMASKHeader *mask = &hdr->extradata.mask;