[FFmpeg-cvslog] avprobe: Remove a pointless check

Luca Barbato git at videolan.org
Fri Oct 17 13:43:19 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Oct 14 16:46:42 2014 +0100| [aeb23fc4549a25ef32ff085d2a76227f90caf403] | committer: Vittorio Giovara

avprobe: Remove a pointless check

The element is always valid.

CC: libav-stable at libav.org
Bug-Id: CID 732276

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aeb23fc4549a25ef32ff085d2a76227f90caf403
---

 avprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avprobe.c b/avprobe.c
index c56ac27..5fc9ad5 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -181,7 +181,7 @@ static void ini_print_object_header(const char *name)
     }
 
     avio_printf(probe_out, "%s", name);
-    if (el && el->type == ARRAY)
+    if (el->type == ARRAY)
         avio_printf(probe_out, ".%"PRId64"", el->nb_elems);
     avio_printf(probe_out, "]\n");
 }



More information about the ffmpeg-cvslog mailing list