diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 67b5819..a816ac5 100644
|
a
|
b
|
typedef struct { |
| 39 | 39 | int updatefirst; |
| 40 | 40 | } VideoMuxData; |
| 41 | 41 | |
| | 42 | #define URL_SCHEME_CHARS \ |
| | 43 | "abcdefghijklmnopqrstuvwxyz" \ |
| | 44 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ |
| | 45 | "0123456789+-." |
| | 46 | |
| | 47 | |
| 42 | 48 | static int write_header(AVFormatContext *s) |
| 43 | 49 | { |
| 44 | 50 | VideoMuxData *img = s->priv_data; |
| … |
… |
static int write_packet(AVFormatContext *s, AVPacket *pkt) |
| 74 | 80 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(codec->pix_fmt); |
| 75 | 81 | int i; |
| 76 | 82 | |
| | 83 | if(strstr(img->path, "concat")) |
| | 84 | { |
| | 85 | size_t proto_len = strspn(img->path, URL_SCHEME_CHARS); |
| | 86 | |
| | 87 | if(img->path[proto_len] == ':') |
| | 88 | img->path[proto_len] = '_'; |
| | 89 | } |
| | 90 | |
| 77 | 91 | if (!img->is_pipe) { |
| 78 | 92 | if (av_get_frame_filename(filename, sizeof(filename), |
| 79 | 93 | img->path, img->img_number) < 0 && img->img_number > 1 && !img->updatefirst) { |