mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
Allow decoding of uyvy422 CYUV with -vcodec rawvideo.
FourCC CYUV can be Creative YUV and uyvy422 rawvideo.
This commit is contained in:
parent
d185278c36
commit
09f25a9cb0
@ -63,6 +63,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
|
||||
{ PIX_FMT_UYVY422, MKTAG('A', 'V', 'u', 'p') },
|
||||
{ PIX_FMT_UYVY422, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
|
||||
{ PIX_FMT_UYVY422, MKTAG('a', 'u', 'v', '2') },
|
||||
{ PIX_FMT_UYVY422, MKTAG('c', 'y', 'u', 'v') }, /* CYUV is also Creative YUV */
|
||||
{ PIX_FMT_UYYVYY411, MKTAG('Y', '4', '1', '1') },
|
||||
{ PIX_FMT_GRAY8, MKTAG('G', 'R', 'E', 'Y') },
|
||||
{ PIX_FMT_NV12, MKTAG('N', 'V', '1', '2') },
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user