From b441fdeb1557a65d12d14c6e928411f47ea59870 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Sat, 8 Jun 2013 23:23:16 +0900 Subject: [PATCH] utvideodec: Support ULH0 and ULH2 formats. Signed-off-by: Kostya Shishkov --- libavcodec/utvideodec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index cf9d2d8da7..129034b84a 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -516,6 +516,14 @@ static av_cold int decode_init(AVCodecContext *avctx) c->planes = 3; avctx->pix_fmt = AV_PIX_FMT_YUV422P; break; + case MKTAG('U', 'L', 'H', '0'): + c->planes = 3; + avctx->pix_fmt = AV_PIX_FMT_YUV420P; + break; + case MKTAG('U', 'L', 'H', '2'): + c->planes = 3; + avctx->pix_fmt = AV_PIX_FMT_YUV422P; + break; default: av_log(avctx, AV_LOG_ERROR, "Unknown Ut Video FOURCC provided (%08X)\n", avctx->codec_tag);