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
e6da5d21
Commit
e6da5d21
authored
Dec 27, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mimic: remove a pointless cast.
parent
30d62507
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mimic.c
libavcodec/mimic.c
+2
-2
No files found.
libavcodec/mimic.c
View file @
e6da5d21
...
@@ -297,7 +297,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
...
@@ -297,7 +297,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
* Flip the buffer upside-down and put it in the YVU order to match the
* Flip the buffer upside-down and put it in the YVU order to match the
* way Mimic encodes frames.
* way Mimic encodes frames.
*/
*/
static
void
prepare_avpic
(
MimicContext
*
ctx
,
AVPicture
*
dst
,
AV
Pictur
e
*
src
)
static
void
prepare_avpic
(
MimicContext
*
ctx
,
AVPicture
*
dst
,
AV
Fram
e
*
src
)
{
{
int
i
;
int
i
;
dst
->
data
[
0
]
=
src
->
data
[
0
]
+
(
ctx
->
avctx
->
height
-
1
)
*
src
->
linesize
[
0
];
dst
->
data
[
0
]
=
src
->
data
[
0
]
+
(
ctx
->
avctx
->
height
-
1
)
*
src
->
linesize
[
0
];
...
@@ -374,7 +374,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -374,7 +374,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ctx
->
next_cur_index
=
(
ctx
->
cur_index
-
1
)
&
15
;
ctx
->
next_cur_index
=
(
ctx
->
cur_index
-
1
)
&
15
;
prepare_avpic
(
ctx
,
&
ctx
->
flipped_ptrs
[
ctx
->
cur_index
],
prepare_avpic
(
ctx
,
&
ctx
->
flipped_ptrs
[
ctx
->
cur_index
],
(
AVPicture
*
)
&
ctx
->
buf_ptrs
[
ctx
->
cur_index
]);
&
ctx
->
buf_ptrs
[
ctx
->
cur_index
]);
ff_thread_finish_setup
(
avctx
);
ff_thread_finish_setup
(
avctx
);
...
...
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