Browse code

dv: fix alignment of scratch buffer

Originally committed as revision 24854 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/08/21 04:49:47
Showing 1 changed files
... ...
@@ -948,7 +948,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
948 948
     int mb_x, mb_y, c_offset, linesize, y_stride;
949 949
     uint8_t*  y_ptr;
950 950
     uint8_t*  dif;
951
-    uint8_t   scratch[64];
951
+    LOCAL_ALIGNED_8(uint8_t, scratch, [64]);
952 952
     EncBlockInfo  enc_blks[5*DV_MAX_BPM];
953 953
     PutBitContext pbs[5*DV_MAX_BPM];
954 954
     PutBitContext* pb;