[FFmpeg-soc] [soc]: r889 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Thu Aug 16 18:10:47 CEST 2007


Author: marco
Date: Thu Aug 16 18:10:47 2007
New Revision: 889

Log:
free the MC data

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Thu Aug 16 18:10:47 2007
@@ -2666,8 +2666,12 @@ START_TIMER
         dirac_idwt(s, coeffs);
 
         if (s->refs) {
-            if (dirac_motion_compensation(s, coeffs, comp))
+            if (dirac_motion_compensation(s, coeffs, comp)) {
+                av_freep(&s->sbsplit);
+                av_freep(&s->blmotion);
+
                 return -1;
+            }
         }
 
         /* Copy the decoded coefficients into the frame.  */
@@ -2681,6 +2685,10 @@ START_TIMER
         }
     }
 
+    if (s->refs) {
+        av_freep(&s->sbsplit);
+        av_freep(&s->blmotion);
+    }
     av_free(coeffs);
 
 STOP_TIMER("dirac_frame_decode");



More information about the FFmpeg-soc mailing list