[FFmpeg-cvslog] avformat/concatdec: fix NEEDS_UNSAFE flag value

Googleplex git at videolan.org
Sun Nov 14 21:38:00 EET 2021


ffmpeg | branch: master | Googleplex <yyoung2001 at gmail.com> | Fri Nov 12 14:29:11 2021 +0800| [23a1f11d02a29b788d441e1b0846a28c0f479df9] | committer: Nicolas George

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23a1f11d02a29b788d441e1b0846a28c0f479df9
---

 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)
 



More information about the ffmpeg-cvslog mailing list