Unified · Split
| @@ -160,13 +160,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 159 unmodified lines | |||
| 160 | return AVERROR(EINVAL); | 160 | return AVERROR(EINVAL); |
| 161 | } | 161 | } |
| 162 | } else if (img->frame_pts) { | 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 | av_log(s, AV_LOG_ERROR, "Cannot write filename by pts of the frames."); | 164 | av_log(s, AV_LOG_ERROR, "Cannot write filename by pts of the frames."); |
| 165 | return AVERROR(EINVAL); | 165 | return AVERROR(EINVAL); |
| 166 | } | 166 | } |
| 167 | } else if (av_get_frame_filename2(filename, sizeof(filename), s->url, | 167 | } else if (ff_get_frame_filename(filename, sizeof(filename), s->url, |
| 168 | img->img_number, | 168 | img->img_number, |
| 169 | AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { | 169 | AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) { |
| 170 | if (img->img_number == img->start_img_number) { | 170 | if (img->img_number == img->start_img_number) { |
| 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); | 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 | av_log(s, AV_LOG_WARNING, | 172 | av_log(s, AV_LOG_WARNING, |