Skip to content
Snippets Groups Projects
Commit 85f273c7 authored by Ramiro Polla's avatar Ramiro Polla
Browse files

x11grab: AVFormatParameters are always passed from av_open_input_stream(),

there is no need to check for it.

Originally committed as revision 22651 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f684f3c5
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -110,7 +110,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
return AVERROR(EIO); 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"); av_log(s1, AV_LOG_ERROR, "AVParameters don't have video size and/or rate. Use -s and -r.\n");
return AVERROR(EIO); return AVERROR(EIO);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment