diff options
author | Sven Gothel <[email protected]> | 2018-01-12 02:59:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2018-01-12 02:59:26 +0100 |
commit | eefec4bd8fd57de03c06d5c8a5fbdb210aa90604 (patch) | |
tree | 056a60e405d53840f2419f34504b7f95c9f80fa5 /libhb/decssasub.c | |
parent | 236863bdc00677721a378bcd314d7c9d26bfb241 (diff) | |
parent | a99c70a39041e5e7002a596d9c6201e746ef6d73 (diff) |
Merge branch 'ffmpeg' into nvenc-encoder
Diffstat (limited to 'libhb/decssasub.c')
-rw-r--r-- | libhb/decssasub.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/decssasub.c b/libhb/decssasub.c index 18990c32c..4ad0b1558 100644 --- a/libhb/decssasub.c +++ b/libhb/decssasub.c @@ -1,6 +1,6 @@ /* decssasub.c - Copyright (c) 2003-2017 HandBrake Team + Copyright (c) 2003-2018 HandBrake Team This file is part of the HandBrake source code Homepage: <http://handbrake.fr/>. It may be used under the terms of the GNU General Public License v2. @@ -348,7 +348,10 @@ ssa_decode_line_to_mkv_ssa( hb_work_object_t * w, hb_buffer_t * in, // when there is no layer field. numPartsRead = sscanf( (char *)in_data, "Dialogue:%128[^,],", layerField ); if ( numPartsRead != 1 ) + { + free(layerField); goto fail; + } styleToTextFields = (char *)find_field( in_data, in_data + in_size, 4 ); if ( styleToTextFields == NULL ) { |