Mercurial > libavcodec.hg
comparison rawdec.c @ 9712:1cc354a5242c libavcodec
Support YVU9 AVI 4cc.
Fixes issue1068.
author | michael |
---|---|
date | Tue, 26 May 2009 03:51:00 +0000 |
parents | 3ac52a187883 |
children | 45d331133468 |
comparison
equal
deleted
inserted
replaced
9711:d563821462b4 | 9712:1cc354a5242c |
---|---|
137 } | 137 } |
138 | 138 |
139 if(context->flip) | 139 if(context->flip) |
140 flip(avctx, picture); | 140 flip(avctx, picture); |
141 | 141 |
142 if (avctx->codec_tag == MKTAG('Y', 'V', '1', '2')) | 142 if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2') |
143 || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9')) | |
143 { | 144 { |
144 // swap fields | 145 // swap fields |
145 unsigned char *tmp = picture->data[1]; | 146 unsigned char *tmp = picture->data[1]; |
146 picture->data[1] = picture->data[2]; | 147 picture->data[1] = picture->data[2]; |
147 picture->data[2] = tmp; | 148 picture->data[2] = tmp; |