Jai Menon <[email protected]> added the comment:
hooking it up to yuv411p is wrong. this isn't a planar format. attached patch
might be more correct though i dont see the point since we dont accept yuv411
packed as input in the swscaler. i guess a complete patch would be welcome ;)
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1123>
_____________________________________________________
Index: libavcodec/raw.c
===================================================================
--- libavcodec/raw.c (revision 20584)
+++ libavcodec/raw.c (working copy)
@@ -51,6 +51,7 @@
{ PIX_FMT_UYVY422, MKTAG('U', 'Y', 'N', 'Y') },
{ PIX_FMT_UYVY422, MKTAG('u', 'y', 'v', '1') },
{ PIX_FMT_UYVY422, MKTAG('2', 'V', 'u', '1') },
+ { PIX_FMT_UYYVYY411, MKTAG('Y', '4', '1', 'P') },
{ PIX_FMT_GRAY8, MKTAG('G', 'R', 'E', 'Y') },
{ PIX_FMT_RGB555, MKTAG('R', 'G', 'B', 15) },
{ PIX_FMT_BGR555, MKTAG('B', 'G', 'R', 15) },
Index: libavformat/riff.c
===================================================================
--- libavformat/riff.c (revision 20584)
+++ libavformat/riff.c (working copy)
@@ -140,6 +140,7 @@
{ CODEC_ID_RAWVIDEO, MKTAG( 3 , 0 , 0 , 0 ) },
{ CODEC_ID_RAWVIDEO, MKTAG('I', '4', '2', '0') },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'Y', '2') },
+ { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '1', 'P') },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', '2') },
{ CODEC_ID_RAWVIDEO, MKTAG('V', '4', '2', '2') },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'N', 'V') },