1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

encode_lavc: fix leak of codecpar

This commit is contained in:
sfan5 2023-07-24 22:47:12 +02:00
parent ee25d0d2e0
commit e01ff88c83

View File

@ -731,6 +731,7 @@ static void encoder_destroy(void *ptr)
struct encoder_context *p = ptr;
av_packet_free(&p->pkt);
avcodec_parameters_free(&p->info.codecpar);
avcodec_free_context(&p->encoder);
free_stream(p->twopass_bytebuffer);
}