diff options
author | jstebbins <[email protected]> | 2011-04-28 00:41:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-04-28 00:41:39 +0000 |
commit | 8b65e3d13fbc73d94b0a5b265da23579382c93bf (patch) | |
tree | 245ff942a37f74ff6845f54d192c1901e10c3b7f /libhb/encac3.c | |
parent | d845d7d9fd637a91235ed3d0e5c6394c6d8a48e3 (diff) |
libhb: don't use deprecated elements of the FFmpeg/Libav API
HandBrake uses many attributes of the FFmpeg API that are were deprecated
when we did the last bump. Many of them no longer exist in current
FFmpeg/Libav git, or are going to be removed soon.
Replaces them with non-deprecated attributes that already exist in the
build we currently use.
Thanks to Rodeo for the patch.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3964 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encac3.c')
-rw-r--r-- | libhb/encac3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encac3.c b/libhb/encac3.c index 693e8b02e..d0c27f419 100644 --- a/libhb/encac3.c +++ b/libhb/encac3.c @@ -62,21 +62,21 @@ int encac3Init( hb_work_object_t * w, hb_job_t * job ) context = avcodec_alloc_context(); avcodec_get_context_defaults3(context, codec); - context->channel_layout = CH_LAYOUT_STEREO; + context->channel_layout = AV_CH_LAYOUT_STEREO; switch( audio->config.out.mixdown ) { case HB_AMIXDOWN_MONO: - context->channel_layout = CH_LAYOUT_MONO; + context->channel_layout = AV_CH_LAYOUT_MONO; break; case HB_AMIXDOWN_STEREO: case HB_AMIXDOWN_DOLBY: case HB_AMIXDOWN_DOLBYPLII: - context->channel_layout = CH_LAYOUT_STEREO; + context->channel_layout = AV_CH_LAYOUT_STEREO; break; case HB_AMIXDOWN_6CH: - context->channel_layout = CH_LAYOUT_5POINT0|CH_LOW_FREQUENCY; + context->channel_layout = AV_CH_LAYOUT_5POINT1; break; default: |