OSDN Git Service

dv: fix alignment of scratch buffer
authorMåns Rullgård <mans@mansr.com>
Fri, 20 Aug 2010 19:49:47 +0000 (19:49 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 20 Aug 2010 19:49:47 +0000 (19:49 +0000)
Originally committed as revision 24854 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dv.c

index 9f53562..63b1f02 100644 (file)
@@ -948,7 +948,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
     int mb_x, mb_y, c_offset, linesize, y_stride;
     uint8_t*  y_ptr;
     uint8_t*  dif;
-    uint8_t   scratch[64];
+    LOCAL_ALIGNED_8(uint8_t, scratch, [64]);
     EncBlockInfo  enc_blks[5*DV_MAX_BPM];
     PutBitContext pbs[5*DV_MAX_BPM];
     PutBitContext* pb;