summaryrefslogtreecommitdiffstats
path: root/libhb/audio_resample.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/audio_resample.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/audio_resample.c')
-rw-r--r--libhb/audio_resample.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libhb/audio_resample.c b/libhb/audio_resample.c
index b48cc7271..913186cc0 100644
--- a/libhb/audio_resample.c
+++ b/libhb/audio_resample.c
@@ -75,12 +75,10 @@ fail:
}
void hb_audio_resample_set_channel_layout(hb_audio_resample_t *resample,
- uint64_t channel_layout,
- int channels)
+ uint64_t channel_layout)
{
if (resample != NULL)
{
- channel_layout = hb_ff_layout_xlat(channel_layout, channels);
if (channel_layout == AV_CH_LAYOUT_STEREO_DOWNMIX)
{
// Dolby Surround is Stereo when it comes to remixing