diff options
author | jstebbins <[email protected]> | 2014-02-20 01:51:45 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-20 01:51:45 +0000 |
commit | 0306771b4a5c09d5bbd5742221eb0bc52103f2c5 (patch) | |
tree | 3c970115d32d0515840eb8b7bb50b2e8976d8d27 /libhb/decavcodec.c | |
parent | a7c4a9f9f03cafa63068150a2e483db6ef686718 (diff) |
libhb: remove a52dec
replace it with libavcodec ac3 decoder
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6049 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 52a80f9dd..1a3132eb6 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -18,7 +18,7 @@ has different decoder calling conventions for audio & video. These work objects are self-contained & follow all of HB's conventions for a decoder module. They can be used like - any other HB decoder (deca52, decmpeg2, etc.). + any other HB decoder These decoders handle 2 kinds of input. Streams that are demuxed by HandBrake and streams that are demuxed by libavformat. In the @@ -753,6 +753,18 @@ static int decavcodecaBSInfo( hb_work_object_t *w, const hb_buffer_t *buf, info->channel_layout = frame->channel_layout; } } + if (context->codec_id == AV_CODEC_ID_AC3 || + context->codec_id == AV_CODEC_ID_EAC3) + { + if (context->audio_service_type == AV_AUDIO_SERVICE_TYPE_KARAOKE) + { + info->mode = 7; + } + else + { + info->mode = context->audio_service_type; + } + } ret = 1; break; |