]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Simplify iv_free_func().
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 30 Sep 2008 11:55:20 +0000 (11:55 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 30 Sep 2008 11:55:20 +0000 (11:55 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15479 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/indeo3.c

index 155d06c1418ee004c98bb14a6c23361e249c4805..e6e556c989579467dc7471042fdf552a95ad1eb1 100644 (file)
@@ -155,19 +155,7 @@ static av_cold int iv_alloc_frames(Indeo3DecodeContext *s)
 /* ---------------------------------------------------------------------- */
 static av_cold void iv_free_func(Indeo3DecodeContext *s)
 {
-  int i;
-
-  for(i = 0 ; i < 2 ; i++) {
-    if(s->buf != NULL)
       av_free(s->buf);
-    s->iv_frame[i].Ybuf = s->iv_frame[i].Ubuf =
-      s->iv_frame[i].Vbuf = NULL;
-    s->buf = NULL;
-    s->iv_frame[i].the_buf_size = 0;
-    s->iv_frame[i].y_w = s->iv_frame[i].y_h = 0;
-    s->iv_frame[i].uv_w = s->iv_frame[i].uv_h = 0;
-  }
-
   av_free(s->ModPred);
   av_free(s->corrector_type);
 }