diff options
author | Rodeo <[email protected]> | 2012-10-27 20:21:00 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-10-27 20:21:00 +0000 |
commit | 94575053a04c240d0f400b6facaaaf9be8190d7b (patch) | |
tree | f77a724dbaad062c6e794fb40501937b0dc0b714 /libhb | |
parent | 670918904cf9f60660239e2aef09455b51e7f696 (diff) |
declpcm: remove an unnecessary instruction.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5041 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/declpcm.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libhb/declpcm.c b/libhb/declpcm.c index c531d4b97..e62e042d3 100644 --- a/libhb/declpcm.c +++ b/libhb/declpcm.c @@ -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; } |