projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f684f3c
)
x11grab: AVFormatParameters are always passed from av_open_input_stream(),
author
Ramiro Polla
<ramiro.polla@gmail.com>
Tue, 23 Mar 2010 23:35:36 +0000
(23:35 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Tue, 23 Mar 2010 23:35:36 +0000
(23:35 +0000)
there is no need to check for it.
Originally committed as revision 22651 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/x11grab.c
patch
|
blob
|
history
diff --git
a/libavdevice/x11grab.c
b/libavdevice/x11grab.c
index
6099327
..
045b823
100644
(file)
--- a/
libavdevice/x11grab.c
+++ b/
libavdevice/x11grab.c
@@
-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);
}