]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/avdct.c
avcodec/videotoolbox: fix kVTCouldNotFindVideoDecoderErr trying to decode HEVC on iOS
[ffmpeg] / libavcodec / avdct.c
index 860f86595d3ceb45f50dde989c9caff21822c599..47e5f7134ea26ab9e9cbcb093d8dd86f44ec17b9 100644 (file)
@@ -123,8 +123,7 @@ int avcodec_dct_init(AVDCT *dsp)
     }
 #endif
 
-    avcodec_close(avctx);
-    av_free(avctx);
+    avcodec_free_context(&avctx);
 
     return 0;
 }