aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/libmpcodecs
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-03-16 14:26:25 -0700
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-03-16 14:26:25 -0700
commit69aab68037089b96519496fd8acd71780f62ab2c (patch)
tree119db991356b4472399550a5431a57e38a0c3d1f /libavfilter/libmpcodecs
parent57149a92f8b4886fd699eefcf9fe1b3552af8193 (diff)
downloadffmpeg-69aab68037089b96519496fd8acd71780f62ab2c.tar.gz
Use av_strdup instead of strdup, fixes mingw build
Diffstat (limited to 'libavfilter/libmpcodecs')
-rw-r--r--libavfilter/libmpcodecs/vf_detc.c3
-rw-r--r--libavfilter/libmpcodecs/vf_divtc.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/libmpcodecs/vf_detc.c b/libavfilter/libmpcodecs/vf_detc.c
index 83e09dd71e..8dd51da794 100644
--- a/libavfilter/libmpcodecs/vf_detc.c
+++ b/libavfilter/libmpcodecs/vf_detc.c
@@ -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);
diff --git a/libavfilter/libmpcodecs/vf_divtc.c b/libavfilter/libmpcodecs/vf_divtc.c
index 0b6ea04a6c..25447f0596 100644
--- a/libavfilter/libmpcodecs/vf_divtc.c
+++ b/libavfilter/libmpcodecs/vf_divtc.c
@@ -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,