This does not get consumed by aom_codec_encode().
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -419,6 +419,7 @@ static av_cold int aom_free(AVCodecContext *avctx) · 418 unmodified lines | ||
| 419 | 419 | #endif |
| 420 | 420 | |
| 421 | 421 | aom_codec_destroy(&ctx->encoder); |
| 422 | + aom_img_remove_metadata(&ctx->rawimg); | |
| 422 | 423 | av_freep(&ctx->twopass_stats.buf); |
| 423 | 424 | av_freep(&avctx->stats_out); |
| 424 | 425 | free_frame_list(ctx->coded_frame_list); |
| @@ -1287,6 +1288,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 862 unmodified lines | ||
| 1287 | 1288 | break; |
| 1288 | 1289 | } |
| 1289 | 1290 | |
| 1291 | + aom_img_remove_metadata(rawimg); | |
| 1290 | 1292 | sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DOVI_METADATA); |
| 1291 | 1293 | if (ctx->dovi.cfg.dv_profile && sd) { |
| 1292 | 1294 | const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data; |