Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
69aab680
Commit
69aab680
authored
Mar 16, 2011
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use av_strdup instead of strdup, fixes mingw build
parent
57149a92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
vf_detc.c
libavfilter/libmpcodecs/vf_detc.c
+1
-2
vf_divtc.c
libavfilter/libmpcodecs/vf_divtc.c
+1
-2
No files found.
libavfilter/libmpcodecs/vf_detc.c
View file @
69aab680
...
...
@@ -16,7 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define _BSD_SOURCE //strdup
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -413,7 +412,7 @@ static void parse_var(struct vf_priv_s *p, char *var)
static
void
parse_args
(
struct
vf_priv_s
*
p
,
char
*
args
)
{
char
*
next
,
*
orig
;
for
(
args
=
orig
=
strdup
(
args
);
args
;
args
=
next
)
{
for
(
args
=
orig
=
av_
strdup
(
args
);
args
;
args
=
next
)
{
next
=
strchr
(
args
,
':'
);
if
(
next
)
*
next
++
=
0
;
parse_var
(
p
,
args
);
...
...
libavfilter/libmpcodecs/vf_divtc.c
View file @
69aab680
...
...
@@ -16,7 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define _BSD_SOURCE //strdup
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -601,7 +600,7 @@ static int vf_open(vf_instance_t *vf, char *args)
struct
vf_priv_s
*
p
;
char
*
filename
=
"framediff.log"
,
*
ap
,
*
q
,
*
a
;
if
(
args
&&
!
(
args
=
strdup
(
args
)))
if
(
args
&&
!
(
args
=
av_
strdup
(
args
)))
{
nomem:
mp_msg
(
MSGT_VFILTER
,
MSGL_FATAL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment