diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2022-11-03 15:07:39 +0000 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2022-11-07 16:13:45 +0000 |
commit | d1366c41672f8767fa124b43e49d2d0ae7e776db (patch) | |
tree | 73d3ff321563023780f8b17dad07471c639aae66 /Changelog | |
parent | 202b7a9ae7be232a819acee666ed7b9835fd67ff (diff) | |
download | ffmpeg-d1366c41672f8767fa124b43e49d2d0ae7e776db.tar.gz |
fftools/ffprobe: Loop over correct number of streams when flushing decoders
Some formats like FLV can dynamically add streams during packet reading.
FFprobe does check for this and reallocates the global stream info, but does
not reallocate InputFrame's streams and decoders when this happens, which,
as a result, could have caused flushing to occur on an out of bounds stream
index, since the flush loop iterates over fmt_ctx's nb_streams, and not
ifile's, despite using ifile's streams.
This fixes an out of bounds read and segfult.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'Changelog')
0 files changed, 0 insertions, 0 deletions