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
499b82f6
Commit
499b82f6
authored
May 21, 2013
by
Xidorn Quan
Committed by
Sebastien Zwickert
May 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vda_h264_dec: fix a memory leak
Signed-off-by:
Sebastien Zwickert
<
dilaroga@gmail.com
>
parent
ffd7fd79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vda_h264_dec.c
libavcodec/vda_h264_dec.c
+3
-0
No files found.
libavcodec/vda_h264_dec.c
View file @
499b82f6
...
...
@@ -102,6 +102,8 @@ static int vdadec_decode(AVCodecContext *avctx,
AVBufferRef
*
buffer
=
pic
->
buf
[
0
];
VDABufferContext
*
context
=
av_buffer_get_opaque
(
buffer
);
CVPixelBufferRef
cv_buffer
=
(
CVPixelBufferRef
)
pic
->
data
[
3
];
CVPixelBufferRetain
(
cv_buffer
);
CVPixelBufferLockBaseAddress
(
cv_buffer
,
0
);
context
->
cv_buffer
=
cv_buffer
;
pic
->
format
=
ctx
->
pix_fmt
;
...
...
@@ -202,6 +204,7 @@ static av_cold int vdadec_init(AVCodecContext *avctx)
vda_ctx
->
height
=
avctx
->
height
;
vda_ctx
->
format
=
'
avc1
'
;
vda_ctx
->
use_sync_decoding
=
1
;
vda_ctx
->
use_ref_buffer
=
1
;
ctx
->
pix_fmt
=
avctx
->
get_format
(
avctx
,
avctx
->
codec
->
pix_fmts
);
switch
(
ctx
->
pix_fmt
)
{
case
AV_PIX_FMT_UYVY422
:
...
...
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