Browse Source

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>
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
04e06beb0a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_metadata_bsf.c

+ 1
- 1
libavcodec/h264_metadata_bsf.c View File

@@ -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;
}
}


Loading…
Cancel
Save