[FFmpeg-cvslog] avformat/argo_brp: make sure stream ids match
Zane van Iperen
git at videolan.org
Sun Sep 20 15:51:48 EEST 2020
ffmpeg | branch: master | Zane van Iperen <zane at zanevaniperen.com> | Sat Sep 19 22:10:45 2020 +1000| [a68c91f6bcd4d6da6a437d1a29a2341b7011809d] | committer: Zane van Iperen
avformat/argo_brp: make sure stream ids match
Signed-off-by: Zane van Iperen <zane at zanevaniperen.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a68c91f6bcd4d6da6a437d1a29a2341b7011809d
---
libavformat/argo_brp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/argo_brp.c b/libavformat/argo_brp.c
index bb7767479b..fbc8dfd7e8 100644
--- a/libavformat/argo_brp.c
+++ b/libavformat/argo_brp.c
@@ -184,6 +184,10 @@ static int argo_brp_read_header(AVFormatContext *s)
hdr->byte_rate = AV_RL32(buf + 12);
hdr->extradata_size = AV_RL32(buf + 16);
+ /* This should always be the case. */
+ if (hdr->id != i)
+ return AVERROR_INVALIDDATA;
+
/* Timestamps are in milliseconds. */
avpriv_set_pts_info(st, 64, 1, 1000);
st->duration = hdr->duration_ms;
More information about the ffmpeg-cvslog
mailing list