summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-28 21:26:04 +0200
committerwm4 <wm4@nowhere>2015-09-28 22:03:14 +0200
commit15ef9f9ee6e4aa70b07afd9a2fafff34606d0142 (patch)
tree199c5c24cd6fe7656e63d5fe6925f001180510dc /video/decode
parentad2ab5893e2153a12bc566cb06aab94246136945 (diff)
downloadmpv-15ef9f9ee6e4aa70b07afd9a2fafff34606d0142.tar.bz2
mpv-15ef9f9ee6e4aa70b07afd9a2fafff34606d0142.tar.xz
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.)
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 1ecd65af6b..6df662e23c 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -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)