diff dv.c @ 1214:327c5a36dfe7 libavcodec

fixing mixed dr1 + internal buffers
author michaelni
date Fri, 25 Apr 2003 00:29:48 +0000
parents 35b80080b2db
children 867d8f0bede6
line wrap: on
line diff
--- a/dv.c	Fri Apr 25 00:21:53 2003 +0000
+++ b/dv.c	Fri Apr 25 00:29:48 2003 +0000
@@ -624,15 +624,8 @@
 static int dvvideo_decode_end(AVCodecContext *avctx)
 {
     DVVideoDecodeContext *s = avctx->priv_data;
-    int i;
-    
-    if(avctx->get_buffer == avcodec_default_get_buffer){
-        for(i=0; i<4; i++){
-            av_freep(&s->picture.base[i]);
-            s->picture.data[i]= NULL;
-        }
-        av_freep(&s->picture.opaque);
-    }
+
+    avcodec_default_free_buffers(avctx);    
 
     return 0;
 }