diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-20 13:58:18 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-13 08:12:44 -0700 |
commit | 635ec127d4bc0c49ae0ac4a50acd3da1ca8c2150 (patch) | |
tree | 3ed7ea1ac0b1beb9dbcaec0eb7c5d57ec6e25ce7 /libavcodec/dsputil_template.c | |
parent | bb12c2e9c00e3d3c393885849b8fa31cd849dc92 (diff) | |
download | ffmpeg-635ec127d4bc0c49ae0ac4a50acd3da1ca8c2150.tar.gz |
dsputil: Merge variable declarations and initializations
Diffstat (limited to 'libavcodec/dsputil_template.c')
-rw-r--r-- | libavcodec/dsputil_template.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dsputil_template.c b/libavcodec/dsputil_template.c index 3a6d27fa39..98564ebb68 100644 --- a/libavcodec/dsputil_template.c +++ b/libavcodec/dsputil_template.c @@ -36,11 +36,10 @@ static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, i { pixel *buf = (pixel*)_buf; int wrap = _wrap / sizeof(pixel); - pixel *ptr, *last_line; + pixel *ptr = buf, *last_line; int i; /* left and right */ - ptr = buf; for(i=0;i<height;i++) { memset(ptr - w, ptr[0], w); memset(ptr + width, ptr[width-1], w); |