[FFmpeg-cvslog] r22651 - trunk/libavdevice/x11grab.c

ramiro subversion
Wed Mar 24 00:35:36 CET 2010


Author: ramiro
Date: Wed Mar 24 00:35:36 2010
New Revision: 22651

Log:
x11grab: AVFormatParameters are always passed from av_open_input_stream(),
there is no need to check for it.

Modified:
   trunk/libavdevice/x11grab.c

Modified: trunk/libavdevice/x11grab.c
==============================================================================
--- trunk/libavdevice/x11grab.c	Tue Mar 23 21:03:20 2010	(r22650)
+++ trunk/libavdevice/x11grab.c	Wed Mar 24 00:35:36 2010	(r22651)
@@ -110,7 +110,7 @@ x11grab_read_header(AVFormatContext *s1,
         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);
     }



More information about the ffmpeg-cvslog mailing list