changeset 7953:edfe5fb802a3 libavcodec

Simplify iv_free_func().
author benoit
date Tue, 30 Sep 2008 11:55:20 +0000
parents 7f123fad56ea
children 4f462c128504
files indeo3.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/indeo3.c	Tue Sep 30 11:51:44 2008 +0000
+++ b/indeo3.c	Tue Sep 30 11:55:20 2008 +0000
@@ -155,19 +155,7 @@
 /* ---------------------------------------------------------------------- */
 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);
 }