aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-08-03 20:36:14 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-04 23:22:54 +0200
commit1fb8f6b75cb82607401852d9f0ac0e3f10b183b1 (patch)
tree8789327d98c85d1f2e0a32a23a2eb2b9edd11101
parentdd96a5847319db8aecf9819336611fff04cb2941 (diff)
downloadffmpeg-1fb8f6b75cb82607401852d9f0ac0e3f10b183b1.tar.gz
avformat/img2enc: Use AV_FRAME_FILENAME_FLAGS_MULTIPLE, support tee:
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/img2enc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 32c68e4d10..1297b1aaba 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -97,7 +97,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, "Could not get frame filename with strftime\n");
return AVERROR(EINVAL);
}
- } else if (av_get_frame_filename(filename, sizeof(filename), img->path, img->img_number) < 0 &&
+ } else if (av_get_frame_filename2(filename, sizeof(filename), img->path,
+ img->img_number,
+ AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0 &&
img->img_number > 1) {
av_log(s, AV_LOG_ERROR,
"Could not get frame filename number %d from pattern '%s' (either set updatefirst or use a pattern like %%03d within the filename pattern)\n",