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
e34751cb
Commit
e34751cb
authored
Apr 24, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/clearvideo: do not try to return frame when it is same as previous one
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
d9706f79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
clearvideo.c
libavcodec/clearvideo.c
+2
-5
No files found.
libavcodec/clearvideo.c
View file @
e34751cb
...
...
@@ -516,11 +516,8 @@ static int clv_decode_frame(AVCodecContext *avctx, void *data,
frame_type
=
bytestream2_get_byte
(
&
gb
);
if
((
frame_type
&
0x7f
)
==
0x30
)
{
if
((
ret
=
ff_reget_buffer
(
avctx
,
c
->
pic
))
<
0
)
return
ret
;
c
->
pic
->
key_frame
=
0
;
c
->
pic
->
pict_type
=
AV_PICTURE_TYPE_P
;
*
got_frame
=
0
;
return
buf_size
;
}
else
if
(
frame_type
&
0x2
)
{
if
(
buf_size
<
c
->
mb_width
*
c
->
mb_height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Packet too small
\n
"
);
...
...
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