mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
parent
5ecb381d78
commit
718bf3b39e
@ -430,7 +430,7 @@ static void uninit_avctx(struct dec_video *vd)
|
||||
vd_ffmpeg_ctx *ctx = vd->priv;
|
||||
AVCodecContext *avctx = ctx->avctx;
|
||||
|
||||
if (avctx)
|
||||
if (avctx && avctx->codec)
|
||||
avcodec_flush_buffers(avctx);
|
||||
|
||||
if (ctx->hwdec && ctx->hwdec->uninit)
|
||||
|
Loading…
Reference in New Issue
Block a user