You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Remove unnecessary av_strdup() and av_free().
Originally committed as revision 25169 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -217,11 +217,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
break;
|
break;
|
||||||
av_free(path);
|
av_free(path);
|
||||||
}
|
}
|
||||||
if (!frei0r->dl_handle && (path = av_strdup(getenv("HOME")))) {
|
if (!frei0r->dl_handle && (path = getenv("HOME"))) {
|
||||||
char prefix[1024];
|
char prefix[1024];
|
||||||
snprintf(prefix, sizeof(prefix), "%s/.frei0r-1/lib/", path);
|
snprintf(prefix, sizeof(prefix), "%s/.frei0r-1/lib/", path);
|
||||||
frei0r->dl_handle = load_path(ctx, prefix, dl_name);
|
frei0r->dl_handle = load_path(ctx, prefix, dl_name);
|
||||||
av_free(path);
|
|
||||||
}
|
}
|
||||||
if (!frei0r->dl_handle)
|
if (!frei0r->dl_handle)
|
||||||
frei0r->dl_handle = load_path(ctx, "/usr/local/lib/frei0r-1/", dl_name);
|
frei0r->dl_handle = load_path(ctx, "/usr/local/lib/frei0r-1/", dl_name);
|
||||||
|
Reference in New Issue
Block a user