[FFmpeg-devel] [PATCH] avformat/concatdec: fix NEEDS_UNSAFE flag value
Googleplex
yyoung2001 at gmail.com
Fri Nov 12 08:29:11 EET 2021
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 at gmail.com>
---
libavformat/concatdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 2557f38b26..8d80e536d1 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -409,7 +409,7 @@ static int concat_read_close(AVFormatContext *avf)
}
#define MAX_ARGS 3
-#define NEEDS_UNSAFE (1 << 1)
+#define NEEDS_UNSAFE (1 << 0)
#define NEEDS_FILE (1 << 1)
#define NEEDS_STREAM (1 << 2)
--
2.25.1
More information about the ffmpeg-devel
mailing list