[FFmpeg-cvslog] r21084 - trunk/libavcodec/snow.c

jai_menon subversion
Fri Jan 8 06:09:17 CET 2010


Author: jai_menon
Date: Fri Jan  8 06:09:17 2010
New Revision: 21084

Log:
Snow : release buffers allocated using avctx->get_buffer.

Modified:
   trunk/libavcodec/snow.c

Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	Fri Jan  8 06:08:02 2010	(r21083)
+++ trunk/libavcodec/snow.c	Fri Jan  8 06:09:17 2010	(r21084)
@@ -2719,6 +2719,10 @@ static av_cold void common_end(SnowConte
             }
         }
     }
+    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(AVCodecCon
     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;



More information about the ffmpeg-cvslog mailing list