mpegvideo_enc: use avcodec_free_context() instead of av_free()
This commit is contained in:
parent
168a443d43
commit
c80344d010
1 changed files with 1 additions and 2 deletions
|
|
@ -1343,8 +1343,7 @@ static int estimate_best_b_count(MpegEncContext *s)
|
|||
}
|
||||
}
|
||||
|
||||
avcodec_close(c);
|
||||
av_freep(&c);
|
||||
avcodec_free_context(&c);
|
||||
|
||||
return best_b_count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue