changeset 10159:6110cd97dc8e libavcodec

Use reget_buffer instead of get_buffer. Fixes issue1367. Patch by jarkko.palviainen.sesca.com.
author banan
date Thu, 10 Sep 2009 19:01:53 +0000
parents 2fc1e93229ee
children 75bab19c59a2
files flashsv.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flashsv.c	Thu Sep 10 18:49:25 2009 +0000
+++ b/flashsv.c	Thu Sep 10 19:01:53 2009 +0000
@@ -162,10 +162,10 @@
         h_blocks, v_blocks, h_part, v_part);
 
     s->frame.reference = 1;
-    s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
-    if (avctx->get_buffer(avctx, &s->frame) < 0) {
-        av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
-        return -1;
+    s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
+    if(avctx->reget_buffer(avctx, &s->frame) < 0){
+      av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
+      return -1;
     }
 
     /* loop over all block columns */