comparison indeo3.c @ 7949:0835de0148f8 libavcodec

Remove useless test.
author benoit
date Tue, 30 Sep 2008 09:41:04 +0000
parents 290928686766
children 9d2399045441
comparison
equal deleted inserted replaced
7948:290928686766 7949:0835de0148f8
119 chroma_pixels = chroma_width * chroma_height; 119 chroma_pixels = chroma_width * chroma_height;
120 120
121 bufsize = luma_pixels * 2 + luma_width * 3 + 121 bufsize = luma_pixels * 2 + luma_width * 3 +
122 (chroma_pixels + chroma_width) * 4; 122 (chroma_pixels + chroma_width) * 4;
123 123
124 if((s->iv_frame[0].the_buf = 124 if(!(s->iv_frame[0].the_buf = av_malloc(bufsize)))
125 (s->iv_frame[0].the_buf_size == 0 ? av_malloc(bufsize) :
126 av_realloc(s->iv_frame[0].the_buf, bufsize))) == NULL)
127 return; 125 return;
128 s->iv_frame[0].y_w = s->iv_frame[1].y_w = luma_width; 126 s->iv_frame[0].y_w = s->iv_frame[1].y_w = luma_width;
129 s->iv_frame[0].y_h = s->iv_frame[1].y_h = luma_height; 127 s->iv_frame[0].y_h = s->iv_frame[1].y_h = luma_height;
130 s->iv_frame[0].uv_w = s->iv_frame[1].uv_w = chroma_width; 128 s->iv_frame[0].uv_w = s->iv_frame[1].uv_w = chroma_width;
131 s->iv_frame[0].uv_h = s->iv_frame[1].uv_h = chroma_height; 129 s->iv_frame[0].uv_h = s->iv_frame[1].uv_h = chroma_height;