mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ad_lavc, vd_lavc, sd_lavc: consistently use avcodec_free_context()
Instead of various ad-hoc ways to achieve the same thing. (The API was added only later.)
This commit is contained in:
@@ -113,9 +113,7 @@ static int init(struct sd *sd)
|
||||
|
||||
error:
|
||||
MP_FATAL(sd, "Could not open libavcodec subtitle decoder\n");
|
||||
if (ctx)
|
||||
av_free(ctx->extradata);
|
||||
av_free(ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
talloc_free(priv);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user