mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-12 13:06:36 +00: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:
parent
07cac2a082
commit
32eba9f27e
@ -217,11 +217,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user