Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
67464c07
Commit
67464c07
authored
May 27, 2013
by
Rafaël Carré
Committed by
Rémi Denis-Courmont
Jun 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_ReleaseFrameBuf: simplify
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
1e48de3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+4
-12
No files found.
modules/codec/avcodec/video.c
View file @
67464c07
...
@@ -1032,24 +1032,16 @@ static void ffmpeg_ReleaseFrameBuf( struct AVCodecContext *p_context,
...
@@ -1032,24 +1032,16 @@ static void ffmpeg_ReleaseFrameBuf( struct AVCodecContext *p_context,
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
p_sys
->
p_va
)
if
(
p_sys
->
p_va
)
{
vlc_va_Release
(
p_sys
->
p_va
,
p_ff_pic
);
vlc_va_Release
(
p_sys
->
p_va
,
p_ff_pic
);
}
else
if
(
p_ff_pic
->
opaque
)
else
if
(
!
p_ff_pic
->
opaque
)
decoder_UnlinkPicture
(
p_dec
,
(
picture_t
*
)
p_ff_pic
->
opaque
);
{
else
if
(
p_ff_pic
->
type
==
FF_BUFFER_TYPE_INTERNAL
)
/* We can end up here without the AVFrame being allocated by
/* We can end up here without the AVFrame being allocated by
* avcodec_default_get_buffer() if VA is used and the frame is
* avcodec_default_get_buffer() if VA is used and the frame is
* released when the decoder is closed
* released when the decoder is closed
*/
*/
if
(
p_ff_pic
->
type
==
FF_BUFFER_TYPE_INTERNAL
)
avcodec_default_release_buffer
(
p_context
,
p_ff_pic
);
avcodec_default_release_buffer
(
p_context
,
p_ff_pic
);
}
else
{
picture_t
*
p_pic
=
(
picture_t
*
)
p_ff_pic
->
opaque
;
decoder_UnlinkPicture
(
p_dec
,
p_pic
);
}
for
(
int
i
=
0
;
i
<
4
;
i
++
)
for
(
int
i
=
0
;
i
<
4
;
i
++
)
p_ff_pic
->
data
[
i
]
=
NULL
;
p_ff_pic
->
data
[
i
]
=
NULL
;
}
}
...
...
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