]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove useless test.
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 30 Sep 2008 09:41:04 +0000 (09:41 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 30 Sep 2008 09:41:04 +0000 (09:41 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15475 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/indeo3.c

index 07e9bcc0840c56307f5b4f28104e4a818a75990a..a0e946ffef000810366666c9dce41772980aeca2 100644 (file)
@@ -121,9 +121,7 @@ static av_cold void iv_alloc_frames(Indeo3DecodeContext *s)
   bufsize = luma_pixels * 2 + luma_width * 3 +
     (chroma_pixels + chroma_width) * 4;
 
-  if((s->iv_frame[0].the_buf =
-    (s->iv_frame[0].the_buf_size == 0 ? av_malloc(bufsize) :
-      av_realloc(s->iv_frame[0].the_buf, bufsize))) == NULL)
+  if(!(s->iv_frame[0].the_buf = av_malloc(bufsize)))
     return;
   s->iv_frame[0].y_w = s->iv_frame[1].y_w = luma_width;
   s->iv_frame[0].y_h = s->iv_frame[1].y_h = luma_height;