diff img2.c @ 1003:2d57ce58f576 libavformat

simplify AVFormatParameters NULL checks
author michael
date Sat, 11 Mar 2006 00:22:21 +0000
parents 68bc3ca12e79
children d89d7ef290da
line wrap: on
line diff
--- a/img2.c	Wed Mar 08 21:51:39 2006 +0000
+++ b/img2.c	Sat Mar 11 00:22:21 2006 +0000
@@ -187,13 +187,13 @@
         st->need_parsing= 1;
     }
 
-    if (!ap || !ap->time_base.num) {
+    if (!ap->time_base.num) {
         av_set_pts_info(st, 60, 1, 25);
     } else {
         av_set_pts_info(st, 60, ap->time_base.num, ap->time_base.den);
     }
 
-    if(ap && ap->width && ap->height){
+    if(ap->width && ap->height){
         st->codec->width = ap->width;
         st->codec->height= ap->height;
     }