aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-01 22:07:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-02 21:42:37 +0200
commitb51d5b222e144ed8a867c4f0d2a3eec7ad5a2497 (patch)
treef1e55ae6914c8084324f4a52d0ae2182553a5c29 /doc/examples
parent70028ce7fd888c6ee04047f7f04194cfcb48c382 (diff)
downloadffmpeg-b51d5b222e144ed8a867c4f0d2a3eec7ad5a2497.tar.gz
avformat/dss: Don't prematurely modify context variable
The DSS demuxer currently decrements a counter that should be positive at the beginning of read_packet; should it become negative, it means that the data to be read can't be read contiguosly, but has to be read in two parts. In this case the counter is incremented again after the first read if said read succeeded; if not, the counter stays negative. This can lead to problems in further read_packet calls; in tickets #9020 and #9023 it led to segfaults if one tries to seek lateron if the seek failed and generic seek tried to read from the beginning. But it could also happen when av_new_packet() failed and the user attempted to read again afterwards. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit afa511ad34452b1806a6cfa2dd785168140843e6)
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions