]> git.sesse.net Git - ffmpeg/commit
avcodec/decode: Check size before opening iconv
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 4 Mar 2021 08:36:15 +0000 (09:36 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 5 Mar 2021 13:11:59 +0000 (14:11 +0100)
commita272f382d3eb143e9da99537aec25dbbe5778614
tree463f24a5bd64e2cd5b4b6f0897964fd504e8cb38
parent684e501cb9f1fb001228770d4e892f647de15202
avcodec/decode: Check size before opening iconv

Avoids closing iconv when the size check fails.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/decode.c