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
a0739e8a
Commit
a0739e8a
authored
Sep 04, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nuv: prevent frame copying when outputting duplicate frames
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
343f8d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nuv.c
libavcodec/nuv.c
+3
-1
No files found.
libavcodec/nuv.c
View file @
a0739e8a
...
...
@@ -162,6 +162,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
int
keyframe
,
ret
;
int
size_change
=
0
;
int
minsize
=
0
;
int
flags
=
0
;
int
result
,
init_frame
=
!
avctx
->
frame_number
;
enum
{
NUV_UNCOMPRESSED
=
'0'
,
...
...
@@ -204,6 +205,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
break
;
case
NUV_COPY_LAST
:
flags
|=
FF_REGET_BUFFER_FLAG_READONLY
;
keyframe
=
0
;
break
;
default:
...
...
@@ -268,7 +270,7 @@ retry:
init_frame
=
1
;
}
if
((
result
=
ff_reget_buffer
(
avctx
,
c
->
pic
,
0
))
<
0
)
if
((
result
=
ff_reget_buffer
(
avctx
,
c
->
pic
,
flags
))
<
0
)
return
result
;
if
(
init_frame
)
{
memset
(
c
->
pic
->
data
[
0
],
0
,
avctx
->
height
*
c
->
pic
->
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