[SCM] libav/experimental: Snow : release buffers allocated using avctx->get_buffer.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:57:04 UTC 2013
The following commit has been merged in the experimental branch:
commit e8c6411ce310ee4030b3f7f168569fedbb70841f
Author: Jai Menon <jmenon86 at gmail.com>
Date: Fri Jan 8 05:09:17 2010 +0000
Snow : release buffers allocated using avctx->get_buffer.
Originally committed as revision 21084 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 86c8639..86bf4f1 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -2719,6 +2719,10 @@ static av_cold void common_end(SnowContext *s){
}
}
}
+ if (s->mconly_picture.data[0])
+ s->avctx->release_buffer(s->avctx, &s->mconly_picture);
+ if (s->current_picture.data[0])
+ s->avctx->release_buffer(s->avctx, &s->current_picture);
}
static av_cold int decode_init(AVCodecContext *avctx)
@@ -4681,6 +4685,8 @@ static av_cold int encode_end(AVCodecContext *avctx)
SnowContext *s = avctx->priv_data;
common_end(s);
+ if (s->input_picture.data[0])
+ avctx->release_buffer(avctx, &s->input_picture);
av_free(avctx->stats_out);
return 0;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list