]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/avcodec: Actually honour the documentation of subtitle_header
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 18 Apr 2021 03:26:32 +0000 (05:26 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 24 Apr 2021 11:56:43 +0000 (13:56 +0200)
It is only supposed to be freed by libavcodec for decoders, yet
avcodec_open2() always frees it on failure.
Furthermore, avcodec_close() doesn't free it for decoders.
Both of this has been changed.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

No differences found