Commit 9ac57e7a authored by ramiro's avatar ramiro

x11grab: AVFormatParameters are always passed from av_open_input_stream(),

there is no need to check for it.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22651 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ad21a20
......@@ -110,7 +110,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
return AVERROR(EIO);
}
if (!ap || 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, "AVParameters don't have video size and/or rate. Use -s and -r.\n");
return AVERROR(EIO);
}
......
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