summaryrefslogtreecommitdiffstats
path: root/libhb/declpcm.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-25 23:19:41 +0000
committerRodeo <[email protected]>2014-01-25 23:19:41 +0000
commitebf885ce8a75dd392e2acab9a8a0e29032e05f71 (patch)
tree14d6ac12639e501c963158497a485a16522519bd /libhb/declpcm.c
parent90795a32478ff917df5a8b6a8bb817998d41ed58 (diff)
decavcodec: prefer AVFrame fields over their AVCodecContext equivalent.
These fields correspond to the actual audio data in the AVFrame, and should always be set (otherwise, we must submit a bug report to libav). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5994 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/declpcm.c')
-rw-r--r--libhb/declpcm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libhb/declpcm.c b/libhb/declpcm.c
index 7a17f2a14..a8f2e32d4 100644
--- a/libhb/declpcm.c
+++ b/libhb/declpcm.c
@@ -330,8 +330,7 @@ static hb_buffer_t *Decode( hb_work_object_t *w )
}
hb_audio_resample_set_channel_layout(pv->resample,
- hdr2layout[pv->nchannels - 1],
- pv->nchannels);
+ hdr2layout[pv->nchannels - 1]);
if (hb_audio_resample_update(pv->resample))
{
hb_log("declpcm: hb_audio_resample_update() failed");