Browse Source

utvideodec: Support ULH0 and ULH2 formats.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
tags/n2.0
Yusuke Nakamura Kostya Shishkov 12 years ago
parent
commit
b441fdeb15
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      libavcodec/utvideodec.c

+ 8
- 0
libavcodec/utvideodec.c View File

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


Loading…
Cancel
Save