encode_lavc: fix leak of codecpar

This commit is contained in:
sfan5 2023-07-24 22:47:12 +02:00
parent ee25d0d2e0
commit e01ff88c83
1 changed files with 1 additions and 0 deletions

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