avformat/concatdec: fix NEEDS_UNSAFE flag value

NEEDS_UNSAFE has the same value as NEEDS_FILE,
causing "duration not allowed if safe" error
while duration directive doesn't require unsafe mode.

Signed-off-by: Googleplex <yyoung2001@gmail.com>
This commit is contained in:
Googleplex 2021-11-12 14:29:11 +08:00 committed by Nicolas George
parent 406ffd9b9b
commit 23a1f11d02

View File

@ -409,7 +409,7 @@ static int concat_read_close(AVFormatContext *avf)
} }
#define MAX_ARGS 3 #define MAX_ARGS 3
#define NEEDS_UNSAFE (1 << 1) #define NEEDS_UNSAFE (1 << 0)
#define NEEDS_FILE (1 << 1) #define NEEDS_FILE (1 << 1)
#define NEEDS_STREAM (1 << 2) #define NEEDS_STREAM (1 << 2)