summaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-09-30 11:55:20 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-09-30 11:55:20 +0000
commitf8be1206a6e031faee7e32fef1453517b93beb26 (patch)
tree64d74bc614ab1cf7a45c11177464f5f983eb09d3 /libavcodec/indeo3.c
parentffc64ac061836fb5fa95e8e8c8789c7383c644cb (diff)
Simplify iv_free_func().
Originally committed as revision 15479 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 155d06c141..e6e556c989 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -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);
}