summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/codec.c b/codec.c
index 5707d6c..38702b3 100644
--- a/codec.c
+++ b/codec.c
@@ -431,6 +431,7 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
decoder->VideoCtx->thread_count = 1;
decoder->VideoCtx->active_thread_type = 0;
} else {
+ decoder->VideoCtx->get_format = Codec_get_format;
decoder->VideoCtx->hwaccel_context =
VideoGetVaapiContext(decoder->HwDecoder);
}