Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9ba4821d
Commit
9ba4821d
authored
Mar 19, 2009
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split TrueHD decoder from MLP
Originally committed as revision 18045 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5c3d507f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
6 deletions
+26
-6
general.texi
doc/general.texi
+4
-2
Makefile
libavcodec/Makefile
+1
-0
allcodecs.c
libavcodec/allcodecs.c
+1
-0
avcodec.h
libavcodec/avcodec.h
+2
-1
mlp_parser.c
libavcodec/mlp_parser.c
+1
-1
mlpdec.c
libavcodec/mlpdec.c
+16
-1
mpeg.c
libavformat/mpeg.c
+1
-1
No files found.
doc/general.texi
View file @
9ba4821d
...
...
@@ -544,8 +544,8 @@ following image formats are supported:
@item IMC (Intel Music Coder) @tab @tab X
@item MACE (Macintosh Audio Compression/Expansion) 3:1 @tab @tab X
@item MACE (Macintosh Audio Compression/Expansion) 6:1 @tab @tab X
@item MLP
(Meridian Lossless Packing)/TrueHD
@tab @tab X
@tab Used in DVD-Audio
and Blu-Ray
discs.
@item MLP
(Meridian Lossless Packing)
@tab @tab X
@tab Used in DVD-Audio discs.
@item Monkey's Audio @tab @tab X
@tab Only versions 3.97-3.99 are supported.
@item MP1 (MPEG audio layer 1) @tab @tab IX
...
...
@@ -598,6 +598,8 @@ following image formats are supported:
@item Speex @tab @tab E
@tab supported through external library libspeex
@item True Audio (TTA) @tab @tab X
@item TrueHD @tab @tab X
@tab Used in HD-DVD and Blu-Ray discs.
@item Vorbis @tab E @tab X
@ A native but very primitive encoder exists.
@item WavPack @tab @tab X
...
...
libavcodec/Makefile
View file @
9ba4821d
...
...
@@ -211,6 +211,7 @@ OBJS-$(CONFIG_THP_DECODER) += mjpegdec.o mjpeg.o
OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER)
+=
tiertexseqv.o
OBJS-$(CONFIG_TIFF_DECODER)
+=
tiff.o
lzw.o
faxcompr.o
OBJS-$(CONFIG_TIFF_ENCODER)
+=
tiffenc.o
rle.o
lzwenc.o
OBJS-$(CONFIG_TRUEHD_DECODER)
+=
mlpdec.o
mlp_parser.o
mlp.o
OBJS-$(CONFIG_TRUEMOTION1_DECODER)
+=
truemotion1.o
OBJS-$(CONFIG_TRUEMOTION2_DECODER)
+=
truemotion2.o
OBJS-$(CONFIG_TRUESPEECH_DECODER)
+=
truespeech.o
...
...
libavcodec/allcodecs.c
View file @
9ba4821d
...
...
@@ -215,6 +215,7 @@ void avcodec_register_all(void)
REGISTER_DECODER
(
SMACKAUD
,
smackaud
);
REGISTER_ENCDEC
(
SONIC
,
sonic
);
REGISTER_ENCODER
(
SONIC_LS
,
sonic_ls
);
REGISTER_DECODER
(
TRUEHD
,
truehd
);
REGISTER_DECODER
(
TRUESPEECH
,
truespeech
);
REGISTER_DECODER
(
TTA
,
tta
);
REGISTER_DECODER
(
VMDAUDIO
,
vmdaudio
);
...
...
libavcodec/avcodec.h
View file @
9ba4821d
...
...
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR 2
1
#define LIBAVCODEC_VERSION_MINOR 2
2
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
@@ -310,6 +310,7 @@ enum CodecID {
CODEC_ID_SIPR
,
CODEC_ID_MP1
,
CODEC_ID_TWINVQ
,
CODEC_ID_TRUEHD
,
/* subtitle codecs */
CODEC_ID_DVD_SUBTITLE
=
0x17000
,
...
...
libavcodec/mlp_parser.c
View file @
9ba4821d
...
...
@@ -287,7 +287,7 @@ lost_sync:
}
AVCodecParser
mlp_parser
=
{
{
CODEC_ID_MLP
},
{
CODEC_ID_MLP
,
CODEC_ID_TRUEHD
},
sizeof
(
MLPParseContext
),
mlp_init
,
mlp_parse
,
...
...
libavcodec/mlpdec.c
View file @
9ba4821d
...
...
@@ -1038,6 +1038,7 @@ error:
return
-
1
;
}
#if CONFIG_MLP_DECODER
AVCodec
mlp_decoder
=
{
"mlp"
,
CODEC_TYPE_AUDIO
,
...
...
@@ -1047,6 +1048,20 @@ AVCodec mlp_decoder = {
NULL
,
NULL
,
read_access_unit
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MLP (Meridian Lossless Packing)
/TrueHD
"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MLP (Meridian Lossless Packing)"
),
};
#endif
/* CONFIG_MLP_DECODER */
#if CONFIG_TRUEHD_DECODER
AVCodec
truehd_decoder
=
{
"truehd"
,
CODEC_TYPE_AUDIO
,
CODEC_ID_TRUEHD
,
sizeof
(
MLPDecodeContext
),
mlp_decode_init
,
NULL
,
NULL
,
read_access_unit
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"TrueHD"
),
};
#endif
/* CONFIG_TRUEHD_DECODER */
libavformat/mpeg.c
View file @
9ba4821d
...
...
@@ -487,7 +487,7 @@ static int mpegps_read_packet(AVFormatContext *s,
codec_id
=
CODEC_ID_PCM_DVD
;
}
else
if
(
startcode
>=
0xb0
&&
startcode
<=
0xbf
)
{
type
=
CODEC_TYPE_AUDIO
;
codec_id
=
CODEC_ID_
MLP
;
codec_id
=
CODEC_ID_
TRUEHD
;
}
else
if
(
startcode
>=
0xc0
&&
startcode
<=
0xcf
)
{
/* Used for both AC-3 and E-AC-3 in EVOB files */
type
=
CODEC_TYPE_AUDIO
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment