[FFmpeg-devel] [PATCH] avformat/utils: refine av_get_frame_filename2 function
Steven Liu
lq at chinaffmpeg.org
Mon Aug 28 15:03:36 EEST 2017
support parse the l for the %lld or %ld
Signed-off-by: Steven Liu <lq at onvideo.cn>
---
libavformat/utils.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 23865c88c4..c76a6cc5f8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4570,6 +4570,7 @@ int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number
if (c == '\0')
break;
if (c == '%') {
+ignoredl:
do {
nd = 0;
while (av_isdigit(*p))
@@ -4593,6 +4594,9 @@ int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number
memcpy(q, buf1, len);
q += len;
break;
+ case 'l':
+ goto ignoredl;
+
default:
goto fail;
}
--
2.11.0 (Apple Git-81)
More information about the ffmpeg-devel
mailing list