[FFmpeg-cvslog] r19814 - trunk/libavcodec/flashsv.c

banan subversion
Thu Sep 10 21:01:53 CEST 2009


Author: banan
Date: Thu Sep 10 21:01:53 2009
New Revision: 19814

Log:
Use reget_buffer instead of get_buffer. Fixes issue1367.
Patch by jarkko.palviainen.sesca.com.

Modified:
   trunk/libavcodec/flashsv.c

Modified: trunk/libavcodec/flashsv.c
==============================================================================
--- trunk/libavcodec/flashsv.c	Thu Sep 10 20:49:25 2009	(r19813)
+++ trunk/libavcodec/flashsv.c	Thu Sep 10 21:01:53 2009	(r19814)
@@ -162,10 +162,10 @@ static int flashsv_decode_frame(AVCodecC
         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 */



More information about the ffmpeg-cvslog mailing list