diff raw.c @ 11622:5531833d63f4 libavcodec

Change ff_raw_pixelFormatTags RGB entries (RGB555, BGR555, RGB565, BGR565, RGB565) to make them specify the tags for the LE variants rather than for the native endian ones. Fix NUT compatibility.
author stefano
date Mon, 12 Apr 2010 22:05:18 +0000
parents 71fccf5aa7e3
children 7dd2a45249a9
line wrap: on
line diff
--- a/raw.c	Mon Apr 12 21:49:04 2010 +0000
+++ b/raw.c	Mon Apr 12 22:05:18 2010 +0000
@@ -56,11 +56,11 @@
     { PIX_FMT_UYVY422, MKTAG('A', 'V', 'u', 'p') },
     { PIX_FMT_UYVY422, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
     { PIX_FMT_GRAY8,   MKTAG('G', 'R', 'E', 'Y') },
-    { PIX_FMT_RGB555,  MKTAG('R', 'G', 'B', 15) },
-    { PIX_FMT_BGR555,  MKTAG('B', 'G', 'R', 15) },
-    { PIX_FMT_RGB565,  MKTAG('R', 'G', 'B', 16) },
-    { PIX_FMT_BGR565,  MKTAG('B', 'G', 'R', 16) },
-    { PIX_FMT_RGB565,  MKTAG( 3 ,  0 ,  0 ,  0 ) },
+    { PIX_FMT_RGB555LE, MKTAG('R', 'G', 'B', 15) },
+    { PIX_FMT_BGR555LE, MKTAG('B', 'G', 'R', 15) },
+    { PIX_FMT_RGB565LE, MKTAG('R', 'G', 'B', 16) },
+    { PIX_FMT_BGR565LE, MKTAG('B', 'G', 'R', 16) },
+    { PIX_FMT_RGB565LE, MKTAG( 3 ,  0 ,  0 ,  0) },
 
     /* quicktime */
     { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },