mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Clarify the error message when video width, height, or framerate are not
specified. Patch by Michel Bardiaux (mbardiaux AT mediaxim DOT be) Originally committed as revision 11551 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1b0a4572f4
commit
48f7e1aeee
@ -494,7 +494,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
|||||||
uint32_t desired_format, capabilities;
|
uint32_t desired_format, capabilities;
|
||||||
|
|
||||||
if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) {
|
if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) {
|
||||||
av_log(s1, AV_LOG_ERROR, "Missing/Wrong parameters\n");
|
av_log(s1, AV_LOG_ERROR, "Missing/Wrong width, height or framerate\n");
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user