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
4cf96c56
Commit
4cf96c56
authored
Dec 22, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wmaprodec: cleanup extradata dumping
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
9b9e4a71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
wmaprodec.c
libavcodec/wmaprodec.c
+6
-16
No files found.
libavcodec/wmaprodec.c
View file @
4cf96c56
...
...
@@ -317,25 +317,21 @@ static av_cold int decode_init(AVCodecContext *avctx)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
/** dump the extradata */
av_log
(
avctx
,
AV_LOG_DEBUG
,
"extradata:
\n
"
);
for
(
i
=
0
;
i
<
avctx
->
extradata_size
;
i
++
)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"[%x] "
,
avctx
->
extradata
[
i
]);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"
\n
"
);
if
(
avctx
->
codec_id
==
AV_CODEC_ID_XMA2
&&
avctx
->
extradata_size
>=
34
)
{
s
->
decode_flags
=
0x10d6
;
channel_mask
=
AV_RL32
(
edata_ptr
+
2
);
s
->
bits_per_sample
=
16
;
/** dump the extradata */
for
(
i
=
0
;
i
<
avctx
->
extradata_size
;
i
++
)
ff_dlog
(
avctx
,
"[%x] "
,
avctx
->
extradata
[
i
]);
ff_dlog
(
avctx
,
"
\n
"
);
}
else
if
(
avctx
->
codec_id
==
AV_CODEC_ID_XMA1
&&
avctx
->
extradata_size
>=
28
)
{
s
->
decode_flags
=
0x10d6
;
s
->
bits_per_sample
=
16
;
channel_mask
=
0
;
/** dump the extradata */
for
(
i
=
0
;
i
<
avctx
->
extradata_size
;
i
++
)
ff_dlog
(
avctx
,
"[%x] "
,
avctx
->
extradata
[
i
]);
ff_dlog
(
avctx
,
"
\n
"
);
}
else
if
(
avctx
->
extradata_size
>=
18
)
{
}
else
if
(
avctx
->
codec_id
==
AV_CODEC_ID_WMAPRO
&&
avctx
->
extradata_size
>=
18
)
{
s
->
decode_flags
=
AV_RL16
(
edata_ptr
+
14
);
channel_mask
=
AV_RL32
(
edata_ptr
+
2
);
s
->
bits_per_sample
=
AV_RL16
(
edata_ptr
);
...
...
@@ -344,12 +340,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
avpriv_request_sample
(
avctx
,
"bits per sample is %d"
,
s
->
bits_per_sample
);
return
AVERROR_PATCHWELCOME
;
}
/** dump the extradata */
for
(
i
=
0
;
i
<
avctx
->
extradata_size
;
i
++
)
ff_dlog
(
avctx
,
"[%x] "
,
avctx
->
extradata
[
i
]);
ff_dlog
(
avctx
,
"
\n
"
);
}
else
{
avpriv_request_sample
(
avctx
,
"Unknown extradata size"
);
return
AVERROR_PATCHWELCOME
;
...
...
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