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
403940de
Commit
403940de
authored
May 29, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo: Use FFSWAP to exchange pointers
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f86e7c5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
mpegvideo.c
libavcodec/mpegvideo.c
+2
-8
No files found.
libavcodec/mpegvideo.c
View file @
403940de
...
...
@@ -846,10 +846,7 @@ static int init_duplicate_context(MpegEncContext *s)
}
if
(
s
->
avctx
->
codec_tag
==
AV_RL32
(
"VCR2"
))
{
// exchange uv
int16_t
(
*
tmp
)[
64
];
tmp
=
s
->
pblocks
[
4
];
s
->
pblocks
[
4
]
=
s
->
pblocks
[
5
];
s
->
pblocks
[
5
]
=
tmp
;
FFSWAP
(
void
*
,
s
->
pblocks
[
4
],
s
->
pblocks
[
5
]);
}
if
(
s
->
out_format
==
FMT_H263
)
{
...
...
@@ -927,10 +924,7 @@ int ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src)
}
if
(
dst
->
avctx
->
codec_tag
==
AV_RL32
(
"VCR2"
))
{
// exchange uv
int16_t
(
*
tmp
)[
64
];
tmp
=
dst
->
pblocks
[
4
];
dst
->
pblocks
[
4
]
=
dst
->
pblocks
[
5
];
dst
->
pblocks
[
5
]
=
tmp
;
FFSWAP
(
void
*
,
dst
->
pblocks
[
4
],
dst
->
pblocks
[
5
]);
}
if
(
!
dst
->
edge_emu_buffer
&&
(
ret
=
frame_size_alloc
(
dst
,
dst
->
linesize
))
<
0
)
{
...
...
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