Commit 35d18a3a authored by lorenm's avatar lorenm

fix a crash with svq1 + sse2.

EMU_EDGE broke memory alignment when the desired alignment is >32 bytes.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8999 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 87488093
...@@ -267,6 +267,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ ...@@ -267,6 +267,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
w+= EDGE_WIDTH*2; w+= EDGE_WIDTH*2;
h+= EDGE_WIDTH*2; h+= EDGE_WIDTH*2;
} }
avcodec_align_dimensions(s, &w, &h);
avpicture_fill(&picture, NULL, s->pix_fmt, w, h); avpicture_fill(&picture, NULL, s->pix_fmt, w, h);
pixel_size= picture.linesize[0]*8 / w; pixel_size= picture.linesize[0]*8 / w;
//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", (int)picture.data[1], w, h, s->pix_fmt); //av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", (int)picture.data[1], w, h, s->pix_fmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment