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
ef4fbee7
Commit
ef4fbee7
authored
Oct 22, 2015
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roqvideodec: use av_frame_copy
parent
42b87ed0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
roqvideodec.c
libavcodec/roqvideodec.c
+5
-5
No files found.
libavcodec/roqvideodec.c
View file @
ef4fbee7
...
@@ -204,16 +204,16 @@ static int roq_decode_frame(AVCodecContext *avctx,
...
@@ -204,16 +204,16 @@ static int roq_decode_frame(AVCodecContext *avctx,
const
uint8_t
*
buf
=
avpkt
->
data
;
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
int
buf_size
=
avpkt
->
size
;
RoqContext
*
s
=
avctx
->
priv_data
;
RoqContext
*
s
=
avctx
->
priv_data
;
int
copy
=
!
s
->
current_frame
->
data
[
0
];
int
copy
=
!
s
->
current_frame
->
data
[
0
]
&&
s
->
last_frame
->
data
[
0
]
;
int
ret
;
int
ret
;
if
((
ret
=
ff_reget_buffer
(
avctx
,
s
->
current_frame
))
<
0
)
if
((
ret
=
ff_reget_buffer
(
avctx
,
s
->
current_frame
))
<
0
)
return
ret
;
return
ret
;
if
(
copy
)
if
(
copy
)
{
av_image_copy
(
s
->
current_frame
->
data
,
s
->
current_frame
->
linesize
,
if
((
ret
=
av_frame_copy
(
s
->
current_frame
,
s
->
last_frame
))
<
0
)
s
->
last_frame
->
data
,
s
->
last_frame
->
linesize
,
return
ret
;
avctx
->
pix_fmt
,
avctx
->
width
,
avctx
->
height
);
}
bytestream2_init
(
&
s
->
gb
,
buf
,
buf_size
);
bytestream2_init
(
&
s
->
gb
,
buf
,
buf_size
);
roqvideo_decode_frame
(
s
);
roqvideo_decode_frame
(
s
);
...
...
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