From 017a68e8fb8b146eda89b7678e754c4bdaba6f10 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 21 May 2017 23:39:54 +0200 Subject: [PATCH] lavf/riff: Support more vlc fourcc's for 12 and 16 bit yuv4xx. --- libavcodec/raw.c | 8 ++++++++ libavformat/riff.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/libavcodec/raw.c b/libavcodec/raw.c index 7146e3a0f8..c6be686c53 100644 --- a/libavcodec/raw.c +++ b/libavcodec/raw.c @@ -270,6 +270,14 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = { { AV_PIX_FMT_YUV422P10BE, MKTAG('I', '2', 'A', 'B') }, { AV_PIX_FMT_YUV444P10LE, MKTAG('I', '4', 'A', 'L') }, { AV_PIX_FMT_YUV444P10BE, MKTAG('I', '4', 'A', 'B') }, + { AV_PIX_FMT_YUV420P12LE, MKTAG('I', '0', 'C', 'L') }, + { AV_PIX_FMT_YUV420P12BE, MKTAG('I', '0', 'C', 'B') }, + { AV_PIX_FMT_YUV422P12LE, MKTAG('I', '2', 'C', 'L') }, + { AV_PIX_FMT_YUV422P12BE, MKTAG('I', '2', 'C', 'B') }, + { AV_PIX_FMT_YUV444P12LE, MKTAG('I', '4', 'C', 'L') }, + { AV_PIX_FMT_YUV444P12BE, MKTAG('I', '4', 'C', 'B') }, + { AV_PIX_FMT_YUV420P16LE, MKTAG('I', '0', 'F', 'L') }, + { AV_PIX_FMT_YUV420P16BE, MKTAG('I', '0', 'F', 'B') }, { AV_PIX_FMT_YUV444P16LE, MKTAG('I', '4', 'F', 'L') }, { AV_PIX_FMT_YUV444P16BE, MKTAG('I', '4', 'F', 'B') }, diff --git a/libavformat/riff.c b/libavformat/riff.c index ac902fde3b..0497669a36 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -284,6 +284,14 @@ const AVCodecTag ff_codec_bmp_tags[] = { { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', 'A', 'B') }, { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', 'F', 'L') }, { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', 'F', 'B') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '0', 'C', 'L') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '0', 'C', 'B') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '2', 'C', 'L') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '2', 'C', 'B') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', 'C', 'L') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', 'C', 'B') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '0', 'F', 'L') }, + { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '0', 'F', 'B') }, { AV_CODEC_ID_FRWU, MKTAG('F', 'R', 'W', 'U') }, { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') },