• Akihiro Tsukada's avatar
    aacdec: add support for dual mono in Japanese DTV · c3c646a8
    Akihiro Tsukada authored
    Japanese DTV uses some non standard extensions in AAC audio.
    One example is 'dual mono', which combines two independent
    audio into one stereo stream, storing them in left and right channels
    respectively.  Historically, dual mono audio has been used for
    multi-lingual audio, one for local/native language, and another for english,
    and usually the "main" (local language) channel should be output without
    any user interactions.
    
    The frames of those dual mono audio are allowed to set
    ADTS channel_config field to 0, and just contain two SCE's *WITHOUT* PCE,
    which is a non standard extension by Japanese DTV standard.
    (ref. ARIB STD-B32 PartII 5.2.3)
    
    This patch adds an AVPacket side data, AV_PKT_DATA_JP_DUALMONO,
    which indicates that the AVPacket is likely to contain an audio frame
    with the above dual mono extension, and has the parameter to specify
    the desired channel selection in that case.
    It also makes aacdec to detect dual mono and output just the desired
    channel when this side data is attached.
    Signed-off-by: 's avatarAkihiro Tsukada <atsukada@users.sourceforge.net>
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    c3c646a8
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
mt-work Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...