avformat/argo_brp: make sure stream ids match
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
e76102a2d8
commit
a68c91f6bc
@ -184,6 +184,10 @@ static int argo_brp_read_header(AVFormatContext *s)
|
|||||||
hdr->byte_rate = AV_RL32(buf + 12);
|
hdr->byte_rate = AV_RL32(buf + 12);
|
||||||
hdr->extradata_size = AV_RL32(buf + 16);
|
hdr->extradata_size = AV_RL32(buf + 16);
|
||||||
|
|
||||||
|
/* This should always be the case. */
|
||||||
|
if (hdr->id != i)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
/* Timestamps are in milliseconds. */
|
/* Timestamps are in milliseconds. */
|
||||||
avpriv_set_pts_info(st, 64, 1, 1000);
|
avpriv_set_pts_info(st, 64, 1, 1000);
|
||||||
st->duration = hdr->duration_ms;
|
st->duration = hdr->duration_ms;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user