[FFmpeg-cvslog] r25169 - trunk/libavfilter/vf_frei0r.c

stefano subversion
Fri Sep 24 11:15:27 CEST 2010


Author: stefano
Date: Fri Sep 24 11:15:27 2010
New Revision: 25169

Log:
Remove unnecessary av_strdup() and av_free().

Modified:
   trunk/libavfilter/vf_frei0r.c

Modified: trunk/libavfilter/vf_frei0r.c
==============================================================================
--- trunk/libavfilter/vf_frei0r.c	Fri Sep 24 02:55:02 2010	(r25168)
+++ trunk/libavfilter/vf_frei0r.c	Fri Sep 24 11:15:27 2010	(r25169)
@@ -217,11 +217,10 @@ static av_cold int init(AVFilterContext 
                 break;
         av_free(path);
     }
-    if (!frei0r->dl_handle && (path = av_strdup(getenv("HOME")))) {
+    if (!frei0r->dl_handle && (path = getenv("HOME"))) {
         char prefix[1024];
         snprintf(prefix, sizeof(prefix), "%s/.frei0r-1/lib/", path);
         frei0r->dl_handle = load_path(ctx, prefix, dl_name);
-        av_free(path);
     }
     if (!frei0r->dl_handle)
         frei0r->dl_handle = load_path(ctx, "/usr/local/lib/frei0r-1/", dl_name);



More information about the ffmpeg-cvslog mailing list