mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
fix a crash with svq1 + sse2.
EMU_EDGE broke memory alignment when the desired alignment is >32 bytes. Originally committed as revision 8999 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5f09770382
commit
5b67307a68
@ -267,6 +267,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
|
||||
w+= EDGE_WIDTH*2;
|
||||
h+= EDGE_WIDTH*2;
|
||||
}
|
||||
avcodec_align_dimensions(s, &w, &h);
|
||||
|
||||
avpicture_fill(&picture, NULL, s->pix_fmt, w, h);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user