1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/h264_metadata_bsf: Fix invalid av_freep

This bug was introduced in 3c8a2a1180.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt
2020-07-04 20:57:56 +02:00
parent d534009f76
commit 04e06beb0a

View File

@@ -528,7 +528,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
if (err < 0) { if (err < 0) {
av_log(bsf, AV_LOG_ERROR, "Failed to attach extracted " av_log(bsf, AV_LOG_ERROR, "Failed to attach extracted "
"displaymatrix side data to packet.\n"); "displaymatrix side data to packet.\n");
av_freep(matrix); av_free(matrix);
goto fail; goto fail;
} }
} }