You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Use av_strdup instead of strdup, fixes mingw build
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _BSD_SOURCE //strdup
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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)
|
static void parse_args(struct vf_priv_s *p, char *args)
|
||||||
{
|
{
|
||||||
char *next, *orig;
|
char *next, *orig;
|
||||||
for (args=orig=strdup(args); args; args=next) {
|
for (args=orig=av_strdup(args); args; args=next) {
|
||||||
next = strchr(args, ':');
|
next = strchr(args, ':');
|
||||||
if (next) *next++ = 0;
|
if (next) *next++ = 0;
|
||||||
parse_var(p, args);
|
parse_var(p, args);
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _BSD_SOURCE //strdup
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -601,7 +600,7 @@ static int vf_open(vf_instance_t *vf, char *args)
|
|||||||
struct vf_priv_s *p;
|
struct vf_priv_s *p;
|
||||||
char *filename="framediff.log", *ap, *q, *a;
|
char *filename="framediff.log", *ap, *q, *a;
|
||||||
|
|
||||||
if(args && !(args=strdup(args)))
|
if(args && !(args=av_strdup(args)))
|
||||||
{
|
{
|
||||||
nomem:
|
nomem:
|
||||||
mp_msg(MSGT_VFILTER, MSGL_FATAL,
|
mp_msg(MSGT_VFILTER, MSGL_FATAL,
|
||||||
|
Reference in New Issue
Block a user