projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00c2804
)
* original fix still didn't align lines on s_align when CODEC_FLAG_EMU_EDGE
author
Roman Shaposhnik
<roman@shaposhnik.org>
Thu, 16 Oct 2003 18:27:48 +0000
(18:27 +0000)
committer
Roman Shaposhnik
<roman@shaposhnik.org>
Thu, 16 Oct 2003 18:27:48 +0000
(18:27 +0000)
was not set.
Originally committed as revision 2394 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
0f0bf90
..
ac4a12f
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-240,7
+240,7
@@
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
if(s->flags&CODEC_FLAG_EMU_EDGE)
buf->data[i] = buf->base[i];
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->type= FF_BUFFER_TYPE_INTERNAL;