Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
da767f06
Commit
da767f06
authored
Oct 02, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/rawdec: Autodetect raw TrueHD streams.
parent
94d50b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
rawdec.c
libavformat/rawdec.c
+16
-3
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/rawdec.c
View file @
da767f06
...
...
@@ -206,14 +206,14 @@ static int mjpeg_probe(AVProbeData *p)
FF_DEF_RAWVIDEO_DEMUXER2
(
mjpeg
,
"raw MJPEG video"
,
mjpeg_probe
,
"mjpg,mjpeg,mpo"
,
AV_CODEC_ID_MJPEG
,
AVFMT_GENERIC_INDEX
|
AVFMT_NOTIMESTAMPS
)
#endif
#if CONFIG_MLP_DEMUXER
static
int
mlp_probe
(
AVProbeData
*
p
)
#if CONFIG_MLP_DEMUXER
|| CONFIG_TRUEHD_DEMUXER
static
int
av_always_inline
mlp_thd_probe
(
AVProbeData
*
p
,
uint32_t
sync
)
{
const
uint8_t
*
buf
,
*
last_buf
=
p
->
buf
,
*
end
=
p
->
buf
+
p
->
buf_size
;
int
frames
=
0
,
valid
=
0
,
size
=
0
;
for
(
buf
=
p
->
buf
;
buf
+
8
<=
end
;
buf
++
)
{
if
(
AV_RB32
(
buf
+
4
)
==
0xf8726fbb
)
{
if
(
AV_RB32
(
buf
+
4
)
==
sync
)
{
frames
++
;
if
(
last_buf
+
size
==
buf
)
{
valid
++
;
...
...
@@ -228,6 +228,13 @@ static int mlp_probe(AVProbeData *p)
return
AVPROBE_SCORE_MAX
;
return
0
;
}
#endif
#if CONFIG_MLP_DEMUXER
static
int
mlp_probe
(
AVProbeData
*
p
)
{
return
mlp_thd_probe
(
p
,
0xf8726fbb
);
}
AVInputFormat
ff_mlp_demuxer
=
{
.
name
=
"mlp"
,
...
...
@@ -242,9 +249,15 @@ AVInputFormat ff_mlp_demuxer = {
#endif
#if CONFIG_TRUEHD_DEMUXER
static
int
thd_probe
(
AVProbeData
*
p
)
{
return
mlp_thd_probe
(
p
,
0xf8726fba
);
}
AVInputFormat
ff_truehd_demuxer
=
{
.
name
=
"truehd"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"raw TrueHD"
),
.
read_probe
=
thd_probe
,
.
read_header
=
ff_raw_audio_read_header
,
.
read_packet
=
ff_raw_read_partial_packet
,
.
flags
=
AVFMT_GENERIC_INDEX
|
AVFMT_NOTIMESTAMPS
,
...
...
libavformat/version.h
View file @
da767f06
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 2
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_MICRO 10
2
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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