Mercurial > libavcodec.hg
comparison ulti.c @ 10413:8a137661f31e libavcodec
Do not try to free memory that was never allocated (partial revert of r20231).
author | cehoyos |
---|---|
date | Fri, 16 Oct 2009 15:16:59 +0000 |
parents | 136334ad62b3 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10412:9d31db7bec63 | 10413:8a137661f31e |
---|---|
59 UltimotionDecodeContext *s = avctx->priv_data; | 59 UltimotionDecodeContext *s = avctx->priv_data; |
60 AVFrame *pic = &s->frame; | 60 AVFrame *pic = &s->frame; |
61 | 61 |
62 if (pic->data[0]) | 62 if (pic->data[0]) |
63 avctx->release_buffer(avctx, pic); | 63 avctx->release_buffer(avctx, pic); |
64 av_freep(&s->frame); | |
65 | 64 |
66 return 0; | 65 return 0; |
67 } | 66 } |
68 | 67 |
69 static const int block_coords[8] = // 4x4 block coords in 8x8 superblock | 68 static const int block_coords[8] = // 4x4 block coords in 8x8 superblock |