mirror of https://github.com/mpv-player/mpv
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;
|
struct encoder_context *p = ptr;
|
||||||
|
|
||||||
av_packet_free(&p->pkt);
|
av_packet_free(&p->pkt);
|
||||||
|
avcodec_parameters_free(&p->info.codecpar);
|
||||||
avcodec_free_context(&p->encoder);
|
avcodec_free_context(&p->encoder);
|
||||||
free_stream(p->twopass_bytebuffer);
|
free_stream(p->twopass_bytebuffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue