Skip to content
Snippets Groups Projects
Commit 5c00fe41 authored by Roman Shaposhnik's avatar Roman Shaposhnik
Browse files

* original fix still didn't align lines on s_align when CODEC_FLAG_EMU_EDGE

     was not set.

Originally committed as revision 2394 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 00c28046
No related branches found
No related tags found
No related merge requests found
...@@ -240,7 +240,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ ...@@ -240,7 +240,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
if(s->flags&CODEC_FLAG_EMU_EDGE) if(s->flags&CODEC_FLAG_EMU_EDGE)
buf->data[i] = buf->base[i]; buf->data[i] = buf->base[i];
else else
buf->data[i] = buf->base[i] + (pic->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift); buf->data[i] = buf->base[i] + ALIGN((pic->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), s_align);
} }
pic->age= 256*256*256*64; pic->age= 256*256*256*64;
pic->type= FF_BUFFER_TYPE_INTERNAL; pic->type= FF_BUFFER_TYPE_INTERNAL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment