Commit 16f619f5 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '635ec127'

* commit '635ec127':
  dsputil: Merge variable declarations and initializations

Conflicts:
	libavcodec/dsputil_template.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents dd7c2e9b 635ec127
This diff is collapsed.
...@@ -32,15 +32,14 @@ ...@@ -32,15 +32,14 @@
#if BIT_DEPTH == 8 #if BIT_DEPTH == 8
/* draw the edges of width 'w' of an image of size width, height */ /* draw the edges of width 'w' of an image of size width, height */
//FIXME check that this is ok for mpeg4 interlaced //FIXME check that this is ok for mpeg4 interlaced
static void FUNCC(draw_edges)(uint8_t *p_buf, int p_wrap, int width, int height, int w, int h, int sides) static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, int w, int h, int sides)
{ {
pixel *buf = (pixel*)p_buf; pixel *buf = (pixel*)_buf;
int wrap = p_wrap / sizeof(pixel); int wrap = _wrap / sizeof(pixel);
pixel *ptr, *last_line; pixel *ptr = buf, *last_line;
int i; int i;
/* left and right */ /* left and right */
ptr = buf;
for(i=0;i<height;i++) { for(i=0;i<height;i++) {
memset(ptr - w, ptr[0], w); memset(ptr - w, ptr[0], w);
memset(ptr + width, ptr[width-1], w); memset(ptr + width, ptr[width-1], w);
......
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