deps/media-playback: Use avcodec_free_context to free AVCodecContext

master
wangshaohui 2022-04-11 13:14:44 +08:00 committed by Jim
parent b94e960d25
commit d2fb302e5c
1 changed files with 1 additions and 3 deletions

View File

@ -114,10 +114,8 @@ static int mp_open_codec(struct mp_decode *d, bool hw)
fail:
avcodec_free_context(&c);
avcodec_free_context(&d->decoder);
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 40, 101)
av_free(d->decoder);
#endif
return ret;
}