aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-10-19 22:07:36 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-10-27 18:10:47 +0200
commite4d5ac8d7d2a08658b3db7dd821246fe6b35381f (patch)
tree90caa8811d7f905cac59d508195a4fa07d18d115
parent907743239d83f7bbcacc466af8ace4e0f6ebc257 (diff)
downloadffmpeg-e4d5ac8d7d2a08658b3db7dd821246fe6b35381f.tar.gz
avformat/rtsp: Use rtsp_st->stream_index
Fixes: out of array access Fixes: rtpdec_h264.c149/poc Found-by: Hardik Shah of Vehere Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index c4f78f97b0..7d1d3a75d4 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -410,7 +410,7 @@ static void parse_fmtp(AVFormatContext *s, RTSPState *rt,
if (rtsp_st->sdp_payload_type == payload_type &&
rtsp_st->dynamic_handler &&
rtsp_st->dynamic_handler->parse_sdp_a_line) {
- rtsp_st->dynamic_handler->parse_sdp_a_line(s, i,
+ rtsp_st->dynamic_handler->parse_sdp_a_line(s, rtsp_st->stream_index,
rtsp_st->dynamic_protocol_context, line);
}
}