aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-06 00:59:08 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-06 00:59:08 +0100
commit09f25a9cb08ddf39dcb16898c36ed793006093fd (patch)
tree3fc44b5d482f6d41dba72890e0271817b13babc0 /libavcodec/rawdec.c
parentd185278c369e9150fe6b4cf730405753384bca93 (diff)
downloadffmpeg-09f25a9cb08ddf39dcb16898c36ed793006093fd.tar.gz
Allow decoding of uyvy422 CYUV with -vcodec rawvideo.
FourCC CYUV can be Creative YUV and uyvy422 rawvideo.
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index acaa0ea732..e48e3850be 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -119,6 +119,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
avctx->coded_frame= &context->pic;
if((avctx->extradata_size >= 9 && !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9)) ||
+ avctx->codec_tag == MKTAG('c','y','u','v') ||
avctx->codec_tag == MKTAG(3, 0, 0, 0) || avctx->codec_tag == MKTAG('W','R','A','W'))
context->flip=1;