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:
parent
ee25d0d2e0
commit
e01ff88c83
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user