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
4f4d1358
Commit
4f4d1358
authored
Jun 15, 2011
by
Andrew Wason
Committed by
Carl Eugen Hoyos
Jun 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support reading chan atoms with empty channel descriptions.
Fixes ticket 263.
parent
dbf23d19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
isom.c
libavformat/isom.c
+6
-4
No files found.
libavformat/isom.c
View file @
4f4d1358
...
@@ -459,16 +459,18 @@ void ff_mov_read_chan(AVFormatContext *s, int64_t size, AVCodecContext *codec)
...
@@ -459,16 +459,18 @@ void ff_mov_read_chan(AVFormatContext *s, int64_t size, AVCodecContext *codec)
uint32_t
layout_tag
;
uint32_t
layout_tag
;
AVIOContext
*
pb
=
s
->
pb
;
AVIOContext
*
pb
=
s
->
pb
;
const
MovChannelLayout
*
layouts
=
mov_channel_layout
;
const
MovChannelLayout
*
layouts
=
mov_channel_layout
;
if
(
size
!=
12
)
{
layout_tag
=
avio_rb32
(
pb
);
size
-=
4
;
if
(
layout_tag
==
0
)
{
//< kCAFChannelLayoutTag_UseChannelDescriptions
// Channel descriptions not implemented
// Channel descriptions not implemented
av_log_ask_for_sample
(
s
,
"Unimplemented container channel layout.
\n
"
);
av_log_ask_for_sample
(
s
,
"Unimplemented container channel layout.
\n
"
);
avio_skip
(
pb
,
size
);
avio_skip
(
pb
,
size
);
return
;
return
;
}
}
layout_tag
=
avio_rb32
(
pb
);
if
(
layout_tag
==
0x10000
)
{
//< kCAFChannelLayoutTag_UseChannelBitmap
if
(
layout_tag
==
0x10000
)
{
//< kCAFChannelLayoutTag_UseChannelBitmap
codec
->
channel_layout
=
avio_rb32
(
pb
);
codec
->
channel_layout
=
avio_rb32
(
pb
);
avio_skip
(
pb
,
4
);
size
-=
4
;
avio_skip
(
pb
,
size
);
return
;
return
;
}
}
while
(
layouts
->
channel_layout
)
{
while
(
layouts
->
channel_layout
)
{
...
@@ -480,7 +482,7 @@ void ff_mov_read_chan(AVFormatContext *s, int64_t size, AVCodecContext *codec)
...
@@ -480,7 +482,7 @@ void ff_mov_read_chan(AVFormatContext *s, int64_t size, AVCodecContext *codec)
}
}
if
(
!
codec
->
channel_layout
)
if
(
!
codec
->
channel_layout
)
av_log
(
s
,
AV_LOG_WARNING
,
"Unknown container channel layout.
\n
"
);
av_log
(
s
,
AV_LOG_WARNING
,
"Unknown container channel layout.
\n
"
);
avio_skip
(
pb
,
8
);
avio_skip
(
pb
,
size
);
}
}
void
ff_mov_write_chan
(
AVIOContext
*
pb
,
int64_t
channel_layout
)
void
ff_mov_write_chan
(
AVIOContext
*
pb
,
int64_t
channel_layout
)
...
...
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