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
12235a3e
Commit
12235a3e
authored
Nov 29, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dcadec: print more details about errors
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
43ec4563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
dcadec.c
libavcodec/dcadec.c
+6
-3
No files found.
libavcodec/dcadec.c
View file @
12235a3e
...
...
@@ -1450,8 +1450,10 @@ static int dca_subframe_footer(DCAContext *s, int base_channel)
aux_data_end
=
8
*
aux_data_count
+
get_bits_count
(
&
s
->
gb
);
if
(
get_bits_long
(
&
s
->
gb
,
32
)
!=
0x9A1105A0
)
// nSYNCAUX
if
(
get_bits_long
(
&
s
->
gb
,
32
)
!=
0x9A1105A0
)
{
// nSYNCAUX
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"nSYNCAUX mismatching
\n
"
);
return
AVERROR_INVALIDDATA
;
}
if
(
get_bits1
(
&
s
->
gb
))
{
// bAUXTimeStampFlag
avpriv_request_sample
(
s
->
avctx
,
...
...
@@ -1502,9 +1504,10 @@ static int dca_subframe_footer(DCAContext *s, int base_channel)
skip_bits
(
&
s
->
gb
,
16
);
// nAUXCRC16
// additional data (reserved, cf. ETSI TS 102 114 V1.4.1)
if
((
reserved
=
(
aux_data_end
-
get_bits_count
(
&
s
->
gb
)))
<
0
)
if
((
reserved
=
(
aux_data_end
-
get_bits_count
(
&
s
->
gb
)))
<
0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"overread aux by %d bits
\n
"
,
-
reserved
);
return
AVERROR_INVALIDDATA
;
else
if
(
reserved
)
{
}
else
if
(
reserved
)
{
avpriv_request_sample
(
s
->
avctx
,
"Core auxiliary data reserved content"
);
skip_bits_long
(
&
s
->
gb
,
reserved
);
...
...
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