Need get_format for software decoder.

This commit is contained in:
Johns 2012-08-17 10:35:52 +02:00
parent 5e93fb2756
commit e9fbe6b54f

View File

@ -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);
}