[FFmpeg-cvslog] ultimotion: use reget_buffer() in ulti_decode_frame()
Stefano Sabatini
git at videolan.org
Thu Apr 28 04:28:30 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue Apr 26 11:45:40 2011 +0200| [4f0b80599a534dcca57be3184b89b98f82bf2a2c] | committer: Ronald S. Bultje
ultimotion: use reget_buffer() in ulti_decode_frame()
Decoder relies on previous frame data, so use reget_buffer().
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f0b80599a534dcca57be3184b89b98f82bf2a2c
---
libavcodec/ulti.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/libavcodec/ulti.c b/libavcodec/ulti.c
index 31b1c4a..9a73c62 100644
--- a/libavcodec/ulti.c
+++ b/libavcodec/ulti.c
@@ -224,13 +224,10 @@ static int ulti_decode_frame(AVCodecContext *avctx,
int skip;
int tmp;
- if(s->frame.data[0])
- avctx->release_buffer(avctx, &s->frame);
-
s->frame.reference = 1;
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
- if(avctx->get_buffer(avctx, &s->frame) < 0) {
- av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
+ if (avctx->reget_buffer(avctx, &s->frame) < 0) {
+ av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
return -1;
}
More information about the ffmpeg-cvslog
mailing list