summaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-09-30 09:41:04 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-09-30 09:41:04 +0000
commit809a23a543de9f79bb14d6648bc00da74643731b (patch)
tree5e0ed5ef0980f8abf28b52b46604b11718d6ab31 /libavcodec/indeo3.c
parent56d9b943d36aa026c300726e366761d8c1ff3a47 (diff)
Remove useless test.
Originally committed as revision 15475 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 07e9bcc084..a0e946ffef 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -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;