diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-03-19 13:10:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-03-19 13:10:09 +0000 |
commit | 02dc898338da27af258ee72285c60cf5e85839a5 (patch) | |
tree | 42b05b2d1e6d6e8e840b8d1bcfc57be7da22a574 /libavcodec/error_resilience.c | |
parent | d4e87f79f0d4f8bfbdfc6b10375152383053a3ed (diff) | |
download | ffmpeg-02dc898338da27af258ee72285c60cf5e85839a5.tar.gz |
alignment fix
Originally committed as revision 4059 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/error_resilience.c')
-rw-r--r-- | libavcodec/error_resilience.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index efd1dd56a6..b0d22ddf97 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -677,8 +677,8 @@ void ff_er_frame_end(MpegEncContext *s){ for(i=0; i<2; i++){ pic->ref_index[i]= av_mallocz(size * sizeof(uint8_t)); - pic->motion_val_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t)); - pic->motion_val[i]= pic->motion_val_base[i]+2; + pic->motion_val_base[i]= av_mallocz((size+4) * 2 * sizeof(uint16_t)); + pic->motion_val[i]= pic->motion_val_base[i]+4; } pic->motion_subsample_log2= 3; s->current_picture= *s->current_picture_ptr; |