mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
Make the image2 demuxer log more verbose
Add an error message in case the user requests to write more than one file
and the path does not contain a "%d" or "%0Nd" pattern.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 4fc9ff0ad6
)
This commit is contained in:
parent
6aef89d54e
commit
b5a7100ad3
@ -347,7 +347,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (!img->is_pipe) {
|
||||
if (av_get_frame_filename(filename, sizeof(filename),
|
||||
img->path, img->img_number) < 0 && img->img_number>1) {
|
||||
av_log(s, AV_LOG_ERROR, "Could not get frame filename from pattern\n");
|
||||
av_log(s, AV_LOG_ERROR,
|
||||
"Could not get frame filename number %d from pattern '%s'\n",
|
||||
img->img_number, img->path);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
for(i=0; i<3; i++){
|
||||
|
Loading…
Reference in New Issue
Block a user