]> git.sesse.net Git - ffmpeg/commit
avformat/mux: Check pkt->stream_index before using it
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 7 May 2020 22:46:10 +0000 (00:46 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 16 May 2020 00:40:23 +0000 (02:40 +0200)
commit39195896f31aef7e96f1e4748e569d930df9d0c9
tree8e14ceb4f5d88edca929c79d1603e852b4e86904
parente0604d508e97322b88c8e4318516ead0cbc55170
avformat/mux: Check pkt->stream_index before using it

This commit stops using pkt->stream_index as index in an AVFormatContext's
streams array before actually comparing the value with the count of
streams in said array. 96e5e6abb9851d7a26ba21703955d5826ac857c0 used
pkt->stream_index in prepare_input_packet() before checking and
64063512227c4c87a7d16a1076481dc6baf19841 did likewise in
write_packets_common().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/mux.c