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
4f8da7e7
Commit
4f8da7e7
authored
Jun 04, 2011
by
Baptiste Coudurier
Committed by
Alex Converse
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s302m: fix resampling for 16 and 24bits.
parent
21c65125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
s302m.c
libavcodec/s302m.c
+2
-2
No files found.
libavcodec/s302m.c
View file @
4f8da7e7
...
@@ -97,7 +97,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -97,7 +97,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
*
o
++
=
(
av_reverse
[
buf
[
6
]
&
0xf0
]
<<
28
)
|
*
o
++
=
(
av_reverse
[
buf
[
6
]
&
0xf0
]
<<
28
)
|
(
av_reverse
[
buf
[
5
]]
<<
20
)
|
(
av_reverse
[
buf
[
5
]]
<<
20
)
|
(
av_reverse
[
buf
[
4
]]
<<
12
)
|
(
av_reverse
[
buf
[
4
]]
<<
12
)
|
(
av_reverse
[
buf
[
3
]
&
0x0f
]
<<
8
);
(
av_reverse
[
buf
[
3
]
&
0x0f
]
<<
4
);
buf
+=
7
;
buf
+=
7
;
}
}
*
data_size
=
(
uint8_t
*
)
o
-
(
uint8_t
*
)
data
;
*
data_size
=
(
uint8_t
*
)
o
-
(
uint8_t
*
)
data
;
...
@@ -120,7 +120,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -120,7 +120,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
av_reverse
[
buf
[
0
]];
av_reverse
[
buf
[
0
]];
*
o
++
=
(
av_reverse
[
buf
[
4
]
&
0xf0
]
<<
12
)
|
*
o
++
=
(
av_reverse
[
buf
[
4
]
&
0xf0
]
<<
12
)
|
(
av_reverse
[
buf
[
3
]]
<<
4
)
|
(
av_reverse
[
buf
[
3
]]
<<
4
)
|
av_reverse
[
buf
[
2
]
&
0x0f
]
;
(
av_reverse
[
buf
[
2
]]
>>
4
)
;
buf
+=
5
;
buf
+=
5
;
}
}
*
data_size
=
(
uint8_t
*
)
o
-
(
uint8_t
*
)
data
;
*
data_size
=
(
uint8_t
*
)
o
-
(
uint8_t
*
)
data
;
...
...
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