aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-12 00:18:29 +0200
committerMark Thompson <sw@jkqxz.net>2019-09-24 15:54:31 +0100
commitf83ac5fd793f6464020777da6802803048b97fc6 (patch)
tree3d4b4341e5b90653d7b29ab11afaea0c0da33f6d /tools
parent8c7d5fcfc32d65951039ab2bb78947a41bdd96c4 (diff)
downloadffmpeg-f83ac5fd793f6464020777da6802803048b97fc6.tar.gz
avcodec/cbs_h264: Automatically free SEI payload on error
If adding an SEI message to an access unit fails, said SEI message was not touched, so that the caller had to free any data associated with it that might need to be freed. But given that ff_cbs_h264_add_sei_message can simply call cbs_h264_free_sei_payload, one can easily free the content of the SEI payload. This fixes a memleak when inserting a user data unregistered string for h264_metadata fails. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions