avformat/argo_brp: use header frame counts

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen 2020-09-26 12:21:45 +10:00
parent 3ffb15a105
commit ce30c3d5b9
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5
1 changed files with 4 additions and 0 deletions

View File

@ -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;