comparison rawdec.c @ 10850:98520e1f1f53 libavcodec

Support uncompressed ("Resolution 1:1") Avid AVI Codec, (partially) fixes issue 1474.
author cehoyos
date Tue, 12 Jan 2010 00:29:26 +0000
parents 8413193405c5
children 1184d065c26a
comparison
equal deleted inserted replaced
10849:e8f4b9e41b7a 10850:98520e1f1f53
72 { 72 {
73 RawVideoContext *context = avctx->priv_data; 73 RawVideoContext *context = avctx->priv_data;
74 74
75 if (avctx->codec_tag == MKTAG('r','a','w',' ')) 75 if (avctx->codec_tag == MKTAG('r','a','w',' '))
76 avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_coded_sample); 76 avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_coded_sample);
77 else if (avctx->codec_tag == MKTAG('A', 'V', 'R', 'n'))
78 avctx->pix_fmt = PIX_FMT_UYVY422; // Avid AVI Codec "Resolution 1:1"
77 else if (avctx->codec_tag) 79 else if (avctx->codec_tag)
78 avctx->pix_fmt = findPixelFormat(ff_raw_pixelFormatTags, avctx->codec_tag); 80 avctx->pix_fmt = findPixelFormat(ff_raw_pixelFormatTags, avctx->codec_tag);
79 else if (avctx->bits_per_coded_sample) 81 else if (avctx->bits_per_coded_sample)
80 avctx->pix_fmt = findPixelFormat(pixelFormatBpsAVI, avctx->bits_per_coded_sample); 82 avctx->pix_fmt = findPixelFormat(pixelFormatBpsAVI, avctx->bits_per_coded_sample);
81 83