History

avcodec/libaomenc: properly clean up image metadata

This does not get consumed by aom_codec_encode().

Niklas Haas committed 2 years ago

Commit 9c6c4f31 parent 5afe7341 file · +2 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libaomenc.c+2−0
@@ -419,6 +419,7 @@ static av_cold int aom_free(AVCodecContext *avctx) · 418 unmodified lines
419419 #endif
420420
421421 aom_codec_destroy(&ctx->encoder);
422+ aom_img_remove_metadata(&ctx->rawimg);
422423 av_freep(&ctx->twopass_stats.buf);
423424 av_freep(&avctx->stats_out);
424425 free_frame_list(ctx->coded_frame_list);
@@ -1287,6 +1288,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 862 unmodified lines
12871288 break;
12881289 }
12891290
1291+ aom_img_remove_metadata(rawimg);
12901292 sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DOVI_METADATA);
12911293 if (ctx->dovi.cfg.dv_profile && sd) {
12921294 const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t