vd_lavc: remove some ancient cargo-culting

Definitely not needed anymore, and fixes a crash in some weird corner-
cases.

The extradata freeing is apparently still needed, though. (Because a
codec context can be opened again, which makes no sense, but ok.)
This commit is contained in:
wm4 2015-09-28 21:26:04 +02:00
parent ad2ab5893e
commit 15ef9f9ee6
1 changed files with 0 additions and 1 deletions

View File

@ -455,7 +455,6 @@ static void uninit_avctx(struct dec_video *vd)
MP_ERR(vd, "Could not close codec.\n");
av_freep(&avctx->extradata);
av_freep(&avctx->slice_offset);
}
if (ctx->hwdec && ctx->hwdec->uninit)