Commit 7cc38c00 authored by lucabe's avatar lucabe

Clarify the error message when video width, height, or framerate are not

specified.
Patch by Michel Bardiaux (mbardiaux AT mediaxim DOT be)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11551 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ffabccc3
...@@ -494,7 +494,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment