diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-22 17:21:48 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-25 00:02:17 +0100 |
commit | ea70c39deecb64f94fe7ae0ea419cbef1c7f9372 (patch) | |
tree | 808a6293335038242da41a41aa7040ae98169378 /libavfilter/filters.h | |
parent | 322be6107a8af96193996dd19af95e7b53465310 (diff) | |
download | ffmpeg-ea70c39deecb64f94fe7ae0ea419cbef1c7f9372.tar.gz |
avcodec/vc1dec: Postpone allocating sprite frame to avoid segfault
Up until now, the VC-1 decoders allocated an AVFrame for usage with
sprites during vc1_decode_init(); yet said AVFrame can be freed if
(re)initializing the context (which happens ordinarily during decoding)
fails. The AVFrame does not get allocated again lateron in this case,
leading to segfaults.
Fix this by moving the allocation of said frame immediately before it is
used (this also means that said frame won't be allocated at all any more
in case of a regular (i.e. non-image) stream).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/filters.h')
0 files changed, 0 insertions, 0 deletions