Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
10396505
Commit
10396505
authored
Mar 15, 2024
by
Andreas Rheinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/aeadec: Export title
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@outlook.com
>
parent
d296c868
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
aeadec.c
libavformat/aeadec.c
+12
-3
No files found.
libavformat/aeadec.c
View file @
10396505
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "demux.h"
#include "pcm.h"
#include "pcm.h"
...
@@ -59,12 +60,20 @@ static int aea_read_probe(const AVProbeData *p)
...
@@ -59,12 +60,20 @@ static int aea_read_probe(const AVProbeData *p)
static
int
aea_read_header
(
AVFormatContext
*
s
)
static
int
aea_read_header
(
AVFormatContext
*
s
)
{
{
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
int
channels
;
char
title
[
256
+
1
];
int
channels
,
ret
;
if
(
!
st
)
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
/* Parse the amount of channels and skip to pos 2048(0x800) */
/* Read the title, parse the number of channels and skip to pos 2048(0x800) */
avio_skip
(
s
->
pb
,
264
);
avio_rl32
(
s
->
pb
);
// magic
ret
=
ffio_read_size
(
s
->
pb
,
title
,
sizeof
(
title
)
-
1
);
if
(
ret
<
0
)
return
ret
;
title
[
sizeof
(
title
)
-
1
]
=
'\0'
;
if
(
title
[
0
]
!=
'\0'
)
av_dict_set
(
&
st
->
metadata
,
"title"
,
title
,
0
);
avio_rl32
(
s
->
pb
);
// Block count
channels
=
avio_r8
(
s
->
pb
);
channels
=
avio_r8
(
s
->
pb
);
avio_skip
(
s
->
pb
,
1783
);
avio_skip
(
s
->
pb
,
1783
);
...
...
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