From d588e3f59bf89e8da6668ea02c3808a36516c94e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 6 Jun 2010 18:29:42 +0000 Subject: [PATCH] Add support to B4BY and R4BY NUT codec tags added in NUT r672. Originally committed as revision 23508 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/raw.c | 2 ++ libavformat/nut.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libavcodec/raw.c b/libavcodec/raw.c index 14f47787c8..41f5c9091a 100644 --- a/libavcodec/raw.c +++ b/libavcodec/raw.c @@ -98,6 +98,8 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = { { PIX_FMT_RGB8, MKTAG('R', 'G', 'B', 8 ) }, { PIX_FMT_BGR4, MKTAG('B', 'G', 'R', 4 ) }, { PIX_FMT_RGB4, MKTAG('R', 'G', 'B', 4 ) }, + { PIX_FMT_RGB4_BYTE,MKTAG('B', '4', 'B', 'Y') }, + { PIX_FMT_BGR4_BYTE,MKTAG('R', '4', 'B', 'Y') }, { PIX_FMT_RGB48LE, MKTAG('R', 'G', 'B', 48 ) }, { PIX_FMT_RGB48BE, MKTAG( 48, 'R', 'G', 'B') }, { PIX_FMT_GRAY16LE, MKTAG('Y', '1', 0 , 16 ) }, diff --git a/libavformat/nut.c b/libavformat/nut.c index 658a8d0035..1c5a13994b 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -63,6 +63,8 @@ const AVCodecTag ff_nut_video_tags[] = { { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 8 ) }, { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 4 ) }, { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 4 ) }, + { CODEC_ID_RAWVIDEO, MKTAG('B', '4', 'B', 'Y') }, + { CODEC_ID_RAWVIDEO, MKTAG('R', '4', 'B', 'Y') }, { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) }, { CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') }, { CODEC_ID_RAWVIDEO, MKTAG('Y', '1', 0 , 16 ) },