changeset 2104:586a6e8f3290 libavcodec

Force alignement for rpza and smc
author rtognimp
date Sun, 27 Jun 2004 11:07:05 +0000
parents bcc91fa67694
children b293b6c3a1a6
files utils.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sun Jun 27 11:06:30 2004 +0000
+++ b/utils.c	Sun Jun 27 11:07:05 2004 +0000
@@ -159,6 +159,16 @@
             w_align=64;
             h_align=64;
         }
+    case PIX_FMT_RGB555:
+        if(s->codec_id == CODEC_ID_RPZA){
+            w_align=4;
+            h_align=4;
+        }
+    case PIX_FMT_PAL8:
+        if(s->codec_id == CODEC_ID_SMC){
+            w_align=4;
+            h_align=4;
+        }
         break;
     default:
         w_align= 1;