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
4d3e7a75
Commit
4d3e7a75
authored
Sep 21, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tta: remove useless commented-out lines
parent
35f9d8c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
tta.c
libavcodec/tta.c
+0
-13
No files found.
libavcodec/tta.c
View file @
4d3e7a75
...
...
@@ -203,10 +203,6 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
{
/* signature */
skip_bits
(
&
s
->
gb
,
32
);
// if (get_bits_long(&s->gb, 32) != av_bswap32(AV_RL32("TTA1"))) {
// av_log(s->avctx, AV_LOG_ERROR, "Missing magic\n");
// return -1;
// }
s
->
flags
=
get_bits
(
&
s
->
gb
,
16
);
if
(
s
->
flags
!=
1
&&
s
->
flags
!=
3
)
...
...
@@ -371,12 +367,6 @@ static int tta_decode_frame(AVCodecContext *avctx,
}
*
predictor
=
*
p
;
/*if ((get_bits_count(&s->gb)+7)/8 > buf_size)
{
av_log(NULL, AV_LOG_INFO, "overread!!\n");
break;
}*/
// flip channels
if
(
cur_chan
<
(
s
->
channels
-
1
))
cur_chan
++
;
...
...
@@ -400,8 +390,6 @@ static int tta_decode_frame(AVCodecContext *avctx,
case
2
:
{
uint16_t
*
samples
=
data
;
for
(
p
=
s
->
decode_buffer
;
p
<
s
->
decode_buffer
+
(
framelen
*
s
->
channels
);
p
++
)
{
// *samples++ = (unsigned char)*p;
// *samples++ = (unsigned char)(*p >> 8);
*
samples
++
=
*
p
;
}
*
data_size
=
(
uint8_t
*
)
samples
-
(
uint8_t
*
)
data
;
...
...
@@ -412,7 +400,6 @@ static int tta_decode_frame(AVCodecContext *avctx,
}
}
// return get_bits_count(&s->gb)+7)/8;
return
buf_size
;
}
...
...
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