[FFmpeg-cvslog] r15475 - trunk/libavcodec/indeo3.c
benoit
subversion
Tue Sep 30 11:41:04 CEST 2008
Author: benoit
Date: Tue Sep 30 11:41:04 2008
New Revision: 15475
Log:
Remove useless test.
Modified:
trunk/libavcodec/indeo3.c
Modified: trunk/libavcodec/indeo3.c
==============================================================================
--- trunk/libavcodec/indeo3.c (original)
+++ trunk/libavcodec/indeo3.c Tue Sep 30 11:41:04 2008
@@ -121,9 +121,7 @@ static av_cold void iv_alloc_frames(Inde
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;
More information about the ffmpeg-cvslog
mailing list