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
31a0ca9e
Commit
31a0ca9e
authored
Jan 27, 2014
by
Xidorn Quan
Committed by
Sebastien Zwickert
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vda: fix crash when a frame is dropped.
Signed-off-by:
Sebastien Zwickert
<
dilaroga@gmail.com
>
parent
05e5bb61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
vda.h
libavcodec/vda.h
+6
-0
vda_h264.c
libavcodec/vda_h264.c
+3
-0
No files found.
libavcodec/vda.h
View file @
31a0ca9e
...
...
@@ -41,6 +41,12 @@
#include "libavcodec/version.h"
// extra flags not defined in VDADecoder.h
enum
{
kVDADecodeInfo_Asynchronous
=
1UL
<<
0
,
kVDADecodeInfo_FrameDropped
=
1UL
<<
1
};
/**
* @defgroup lavc_codec_hwaccel_vda VDA
* @ingroup lavc_codec_hwaccel
...
...
libavcodec/vda_h264.c
View file @
31a0ca9e
...
...
@@ -41,6 +41,9 @@ static void vda_decoder_callback(void *vda_hw_ctx,
{
struct
vda_context
*
vda_ctx
=
vda_hw_ctx
;
if
(
infoFlags
&
kVDADecodeInfo_FrameDropped
)
vda_ctx
->
cv_buffer
=
NULL
;
if
(
!
image_buffer
)
return
;
...
...
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