diff utils.c @ 2418:82af834636c2 libavcodec

Check pointers before writing to memory, fix possible integer overflows Force alignement for mszh and zlib decoders
author rtognimp
date Sun, 09 Jan 2005 23:39:32 +0000
parents 582e635cfa08
children 18b8b2dcc037
line wrap: on
line diff
--- a/utils.c	Sun Jan 09 00:48:37 2005 +0000
+++ b/utils.c	Sun Jan 09 23:39:32 2005 +0000
@@ -217,6 +217,12 @@
             h_align=4;
         }
         break;
+    case PIX_FMT_BGR24:
+        if((s->codec_id == CODEC_ID_MSZH) || (s->codec_id == CODEC_ID_ZLIB)){
+            w_align=4;
+            h_align=4;
+        }
+        break;
     default:
         w_align= 1;
         h_align= 1;