projects
/
handbrake
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6709189
)
declpcm: remove an unnecessary instruction.
author
Rodeo
<tdskywalker@gmail.com>
Sat, 27 Oct 2012 20:21:00 +0000
(20:21 +0000)
committer
Rodeo
<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
patch
|
blob
|
history
diff --git
a/libhb/declpcm.c
b/libhb/declpcm.c
index c531d4b97a86925e4a799a25023ba45289871ce8..e62e042d3ce54838acc9ad1dba51fd02b46b53fc 100644
(file)
--- 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;
}