declpcm: remove an unnecessary instruction.
authorRodeo <tdskywalker@gmail.com>
Sat, 27 Oct 2012 20:21:00 +0000 (20:21 +0000)
committerRodeo <tdskywalker@gmail.com>
Sat, 27 Oct 2012 20:21:00 +0000 (20:21 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5041 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/declpcm.c

index c531d4b97a86925e4a799a25023ba45289871ce8..e62e042d3ce54838acc9ad1dba51fd02b46b53fc 100644 (file)
@@ -338,16 +338,14 @@ static hb_buffer_t *Decode( hb_work_object_t *w )
         return NULL;
     }
     out = hb_audio_resample(pv->resample, (void*)pv->data, pv->nsamples);
-    if (out == NULL)
+
+    if (out != NULL)
     {
-        return NULL;
+        out->s.start    = pv->next_pts;
+        out->s.duration = pv->duration;
+        pv->next_pts   += pv->duration;
+        out->s.stop     = pv->next_pts;
     }
-
-    out->s.start  = pv->next_pts;
-    out->s.duration = pv->duration;
-    pv->next_pts += pv->duration;
-    out->s.stop = pv->next_pts;
-
     return out;
 }