diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-03 10:50:28 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-06-23 08:49:49 +0200 |
commit | 41b68dce4d148b6a227d001b32deb275c01aa550 (patch) | |
tree | c385237106b906e67187a5d5fb68192a785e19cf /libavdevice/libdc1394.c | |
parent | a4bda405447b13e84b4004ab281ae01abd230e22 (diff) | |
download | ffmpeg-41b68dce4d148b6a227d001b32deb275c01aa550.tar.gz |
lavdev: improve feedback in case of invalid frame rate/size
Show the invalid string in the error message.
While at it also prefer "Could not" over "Couldn't", plain forms are
preferred over contractions (simplify readability, especially for non
English-savvy people).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavdevice/libdc1394.c')
-rw-r--r-- | libavdevice/libdc1394.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index 622579bc92..bf4e27e51b 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -134,11 +134,11 @@ static inline int dc1394_read_common(AVFormatContext *c, AVFormatParameters *ap, } if ((ret = av_parse_video_size(&width, &height, dc1394->video_size)) < 0) { - av_log(c, AV_LOG_ERROR, "Couldn't parse video size.\n"); + av_log(c, AV_LOG_ERROR, "Could not parse video size '%s'.\n", dc1394->video_size); goto out; } if ((ret = av_parse_video_rate(&framerate, dc1394->framerate)) < 0) { - av_log(c, AV_LOG_ERROR, "Couldn't parse framerate.\n"); + av_log(c, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", dc1394->framerate); goto out; } #if FF_API_FORMAT_PARAMETERS |