aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/http_multiclient.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-10 20:11:49 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:58 +0100
commit9c6feb104d61c550fc77e8866705bdffc8de8736 (patch)
tree5d491b9216679bac4368a3549d60d68b688b3446 /doc/examples/http_multiclient.c
parenta7d3dc5b0407401993aa9a5a40f55903a121d450 (diff)
downloadffmpeg-9c6feb104d61c550fc77e8866705bdffc8de8736.tar.gz
avcodec/sheervideo: Don't leave context in inconsistent state upon error
This has happened if the format changed midstream and if the new packet is so small that it is instantaneously rejected: In this case the VLC tables were for the new format, although the context says that they are still the ones for the old format. It can also happen if the format changed midstream and the allocation of the new tables fails. If the next packet is a packet for the old format, the decoder thinks it already has the correct VLC tables, leading to a segfault. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 8969b9aa061790a5e87694aab17741cc7647d099)
Diffstat (limited to 'doc/examples/http_multiclient.c')
0 files changed, 0 insertions, 0 deletions