changeset 29301:4d26a10456cd

Testing RGB48 variants requires bigger stride in swscale-example.c
author kostya
date Tue, 02 Jun 2009 15:35:58 +0000
parents 321437b5bde2
children ce8edb0e2897
files libswscale/swscale-example.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Tue Jun 02 12:30:11 2009 +0000
+++ b/libswscale/swscale-example.c	Tue Jun 02 15:35:58 2009 +0000
@@ -66,11 +66,15 @@
         // avoid stride % bpp != 0
         if (srcFormat==PIX_FMT_RGB24 || srcFormat==PIX_FMT_BGR24)
             srcStride[i]= srcW*3;
+        else if (srcFormat==PIX_FMT_RGB48BE || srcFormat==PIX_FMT_RGB48LE)
+            srcStride[i]= srcW*6;
         else
             srcStride[i]= srcW*4;
 
         if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24)
             dstStride[i]= dstW*3;
+        else if (dstFormat==PIX_FMT_RGB48BE || dstFormat==PIX_FMT_RGB48LE)
+            dstStride[i]= dstW*6;
         else
             dstStride[i]= dstW*4;