Mercurial > libavcodec.hg
comparison indeo3.c @ 7953:edfe5fb802a3 libavcodec
Simplify iv_free_func().
author | benoit |
---|---|
date | Tue, 30 Sep 2008 11:55:20 +0000 |
parents | 7f123fad56ea |
children | 4f462c128504 |
comparison
equal
deleted
inserted
replaced
7952:7f123fad56ea | 7953:edfe5fb802a3 |
---|---|
153 } | 153 } |
154 | 154 |
155 /* ---------------------------------------------------------------------- */ | 155 /* ---------------------------------------------------------------------- */ |
156 static av_cold void iv_free_func(Indeo3DecodeContext *s) | 156 static av_cold void iv_free_func(Indeo3DecodeContext *s) |
157 { | 157 { |
158 int i; | |
159 | |
160 for(i = 0 ; i < 2 ; i++) { | |
161 if(s->buf != NULL) | |
162 av_free(s->buf); | 158 av_free(s->buf); |
163 s->iv_frame[i].Ybuf = s->iv_frame[i].Ubuf = | |
164 s->iv_frame[i].Vbuf = NULL; | |
165 s->buf = NULL; | |
166 s->iv_frame[i].the_buf_size = 0; | |
167 s->iv_frame[i].y_w = s->iv_frame[i].y_h = 0; | |
168 s->iv_frame[i].uv_w = s->iv_frame[i].uv_h = 0; | |
169 } | |
170 | |
171 av_free(s->ModPred); | 159 av_free(s->ModPred); |
172 av_free(s->corrector_type); | 160 av_free(s->corrector_type); |
173 } | 161 } |
174 | 162 |
175 /* ---------------------------------------------------------------------- */ | 163 /* ---------------------------------------------------------------------- */ |