diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-04 20:57:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-04 22:33:21 +0200 |
commit | 7cbb6ee2eec8fcd1e627ea27b0569d6d5bcfe324 (patch) | |
tree | ff10c779ea706328a9833dbf7993961aff9d70a0 | |
parent | acefb59ac5cdfbec6c82f80b188ddf2e67a29a0a (diff) | |
download | ffmpeg-7cbb6ee2eec8fcd1e627ea27b0569d6d5bcfe324.tar.gz |
avcodec/h264_metadata_bsf: Fix invalid av_freep
This bug was introduced in 3c8a2a1180f03ca6b299ebc27eef21ae86635ca0.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 04e06beb0ab98a6eb85df32f7809b1143e4bebe7)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavcodec/h264_metadata_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 99017653d0..cef054bd65 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h264_metadata_bsf.c @@ -528,7 +528,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt) if (err < 0) { av_log(bsf, AV_LOG_ERROR, "Failed to attach extracted " "displaymatrix side data to packet.\n"); - av_freep(matrix); + av_free(matrix); goto fail; } } |