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
aa15afb7
Commit
aa15afb7
authored
Nov 13, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4xm: simplify code with FFSWAP
parent
10c26e92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
4xm.c
libavcodec/4xm.c
+2
-4
No files found.
libavcodec/4xm.c
View file @
aa15afb7
...
...
@@ -760,7 +760,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
int
buf_size
=
avpkt
->
size
;
FourXContext
*
const
f
=
avctx
->
priv_data
;
AVFrame
*
picture
=
data
;
AVFrame
*
p
,
temp
;
AVFrame
*
p
;
int
i
,
frame_4cc
,
frame_size
,
ret
;
frame_4cc
=
AV_RL32
(
buf
);
...
...
@@ -821,9 +821,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
frame_size
=
buf_size
-
12
;
}
temp
=
f
->
current_picture
;
f
->
current_picture
=
f
->
last_picture
;
f
->
last_picture
=
temp
;
FFSWAP
(
AVFrame
,
f
->
current_picture
,
f
->
last_picture
);
p
=
&
f
->
current_picture
;
avctx
->
coded_frame
=
p
;
...
...
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