Unified · Split
| @@ -160,13 +160,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 159 unmodified lines | ||
| 160 | 160 | return AVERROR(EINVAL); |
| 161 | 161 | } |
| 162 | 162 | } else if (img->frame_pts) { |
| 163 | − if (av_get_frame_filename2(filename, sizeof(filename), s->url, pkt->pts, AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { | |
| 163 | + if (ff_get_frame_filename(filename, sizeof(filename), s->url, pkt->pts, AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { | |
| 164 | 164 | av_log(s, AV_LOG_ERROR, "Cannot write filename by pts of the frames."); |
| 165 | 165 | return AVERROR(EINVAL); |
| 166 | 166 | } |
| 167 | − } else if (av_get_frame_filename2(filename, sizeof(filename), s->url, | |
| 168 | − img->img_number, | |
| 169 | − AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { | |
| 167 | + } else if (ff_get_frame_filename(filename, sizeof(filename), s->url, | |
| 168 | + img->img_number, | |
| 169 | + AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { | |
| 170 | 170 | if (img->img_number == img->start_img_number) { |
| 171 | 171 | av_log(s, AV_LOG_WARNING, "The specified filename '%s' does not contain an image sequence pattern or a pattern is invalid.\n", s->url); |
| 172 | 172 | av_log(s, AV_LOG_WARNING, |