Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c99c0e26
Commit
c99c0e26
authored
Jul 17, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tta: remove disabled code
parent
6eaaf8da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
tta.c
libavcodec/tta.c
+0
-31
No files found.
libavcodec/tta.c
View file @
c99c0e26
...
@@ -66,23 +66,6 @@ typedef struct TTAContext {
...
@@ -66,23 +66,6 @@ typedef struct TTAContext {
TTAChannel
*
ch_ctx
;
TTAChannel
*
ch_ctx
;
}
TTAContext
;
}
TTAContext
;
#if 0
static inline int shift_1(int i)
{
if (i < 32)
return 1 << i;
else
return 0x80000000; // 16 << 31
}
static inline int shift_16(int i)
{
if (i < 28)
return 16 << i;
else
return 0x80000000; // 16 << 27
}
#else
static
const
uint32_t
shift_1
[]
=
{
static
const
uint32_t
shift_1
[]
=
{
0x00000001
,
0x00000002
,
0x00000004
,
0x00000008
,
0x00000001
,
0x00000002
,
0x00000004
,
0x00000008
,
0x00000010
,
0x00000020
,
0x00000040
,
0x00000080
,
0x00000010
,
0x00000020
,
0x00000040
,
0x00000080
,
...
@@ -97,7 +80,6 @@ static const uint32_t shift_1[] = {
...
@@ -97,7 +80,6 @@ static const uint32_t shift_1[] = {
};
};
static
const
uint32_t
*
const
shift_16
=
shift_1
+
4
;
static
const
uint32_t
*
const
shift_16
=
shift_1
+
4
;
#endif
static
const
int32_t
ttafilter_configs
[
4
][
2
]
=
{
static
const
int32_t
ttafilter_configs
[
4
][
2
]
=
{
{
10
,
1
},
{
10
,
1
},
...
@@ -389,19 +371,6 @@ static int tta_decode_frame(AVCodecContext *avctx,
...
@@ -389,19 +371,6 @@ static int tta_decode_frame(AVCodecContext *avctx,
}
}
*
predictor
=
*
p
;
*
predictor
=
*
p
;
#if 0
// extract 32bit float from last two int samples
if (s->is_float && ((p - data) & 1)) {
uint32_t neg = *p & 0x80000000;
uint32_t hi = *(p - 1);
uint32_t lo = abs(*p) - 1;
hi += (hi || lo) ? 0x3f80 : 0;
// SWAP16: swap all the 16 bits
*(p - 1) = (hi << 16) | SWAP16(lo) | neg;
}
#endif
/*if ((get_bits_count(&s->gb)+7)/8 > buf_size)
/*if ((get_bits_count(&s->gb)+7)/8 > buf_size)
{
{
av_log(NULL, AV_LOG_INFO, "overread!!\n");
av_log(NULL, AV_LOG_INFO, "overread!!\n");
...
...
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