OSDN Git Service

Remove assert()s.
authorsaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 17 Jun 2008 21:08:26 +0000 (21:08 +0000)
committersaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 17 Jun 2008 21:08:26 +0000 (21:08 +0000)
They were really only put there for initial debugging, never intended to make it into the final commit.

git-svn-id: svn://localhost/HandBrake/trunk@1523 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/common.c

index 457ef89..c625bec 100644 (file)
@@ -7,7 +7,6 @@
 #include <stdarg.h>
 #include <time.h>
 #include <sys/time.h>
-#include <assert.h>
 
 #include "common.h"
 
@@ -676,8 +675,6 @@ hb_audio_t *hb_audio_copy(const hb_audio_t *src)
  *********************************************************************/
 void hb_audio_config_init(hb_audio_config_t * audiocfg)
 {
-    assert(audiocfg != NULL);
-
     /* Set read only paramaters to invalid values */
     audiocfg->in.codec = 0xDEADBEEF;
     audiocfg->in.bitrate = -1;
@@ -704,9 +701,6 @@ void hb_audio_config_init(hb_audio_config_t * audiocfg)
  *********************************************************************/
 int hb_audio_add(const hb_job_t * job, const hb_audio_config_t * audiocfg)
 {
-    assert(job != NULL);
-    assert(audiocfg != NULL);
-
     hb_title_t *title = job->title;
     hb_audio_t *audio;
 
@@ -753,7 +747,6 @@ int hb_audio_add(const hb_job_t * job, const hb_audio_config_t * audiocfg)
 
 hb_audio_config_t * hb_list_audio_config_item(hb_list_t * list, int i)
 {
-    assert(list != NULL);
     hb_audio_t *audio = NULL;
 
     if( (audio = hb_list_item(list, i)) )