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
7877b50d
Commit
7877b50d
authored
Jun 26, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: simplify code by using avfilter_unref_bufferp()
parent
b0fdd348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
ffplay.c
ffplay.c
+3
-9
No files found.
ffplay.c
View file @
7877b50d
...
...
@@ -908,10 +908,7 @@ static void stream_close(VideoState *is)
for
(
i
=
0
;
i
<
VIDEO_PICTURE_QUEUE_SIZE
;
i
++
)
{
vp
=
&
is
->
pictq
[
i
];
#if CONFIG_AVFILTER
if
(
vp
->
picref
)
{
avfilter_unref_buffer
(
vp
->
picref
);
vp
->
picref
=
NULL
;
}
avfilter_unref_bufferp
(
&
vp
->
picref
);
#endif
if
(
vp
->
bmp
)
{
SDL_FreeYUVOverlay
(
vp
->
bmp
);
...
...
@@ -1317,9 +1314,7 @@ static void alloc_picture(AllocEventProps *event_props)
SDL_FreeYUVOverlay
(
vp
->
bmp
);
#if CONFIG_AVFILTER
if
(
vp
->
picref
)
avfilter_unref_buffer
(
vp
->
picref
);
vp
->
picref
=
NULL
;
avfilter_unref_bufferp
(
&
vp
->
picref
);
#endif
vp
->
width
=
frame
->
width
;
...
...
@@ -1425,8 +1420,7 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts1, int64_
if
(
vp
->
bmp
)
{
AVPicture
pict
=
{
{
0
}
};
#if CONFIG_AVFILTER
if
(
vp
->
picref
)
avfilter_unref_buffer
(
vp
->
picref
);
avfilter_unref_bufferp
(
&
vp
->
picref
);
vp
->
picref
=
src_frame
->
opaque
;
#endif
...
...
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