# HG changeset patch # User benoit # Date 1222849657 0 # Node ID 474794ff86df009c86a6aea44e9a0c41ff53dad3 # Parent c0745c5b1bb46c6937f3218abdc95ea6c338e487 Merge declaration and assignment. diff -r c0745c5b1bb4 -r 474794ff86df indeo3.c --- a/indeo3.c Wed Oct 01 07:28:34 2008 +0000 +++ b/indeo3.c Wed Oct 01 08:27:37 2008 +0000 @@ -98,19 +98,15 @@ static av_cold int iv_alloc_frames(Indeo3DecodeContext *s) { - int luma_width, luma_height, luma_pixels, chroma_width, chroma_height, - chroma_pixels, i; - unsigned int bufsize; - - luma_width = (s->width + 3) & (~3); - luma_height = (s->height + 3) & (~3); - chroma_width = ((luma_width >> 2) + 3) & (~3); - chroma_height = ((luma_height>> 2) + 3) & (~3); - luma_pixels = luma_width * luma_height; - chroma_pixels = chroma_width * chroma_height; - - bufsize = luma_pixels * 2 + luma_width * 3 + - (chroma_pixels + chroma_width) * 4; + int luma_width = (s->width + 3) & ~3, + luma_height = (s->height + 3) & ~3, + chroma_width = ((luma_width >> 2) + 3) & ~3, + chroma_height = ((luma_height >> 2) + 3) & ~3, + luma_pixels = luma_width * luma_height, + chroma_pixels = chroma_width * chroma_height, + i; + unsigned int bufsize = luma_pixels * 2 + luma_width * 3 + + (chroma_pixels + chroma_width) * 4; if(!(s->buf = av_malloc(bufsize))) return AVERROR(ENOMEM);