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
ce1eefe6
Commit
ce1eefe6
authored
May 06, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: use av_fifo_freep
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
a5f2f33a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
audiointerleave.c
libavformat/audiointerleave.c
+1
-1
dvenc.c
libavformat/dvenc.c
+2
-2
mpegenc.c
libavformat/mpegenc.c
+1
-1
swfenc.c
libavformat/swfenc.c
+1
-2
udp.c
libavformat/udp.c
+2
-2
No files found.
libavformat/audiointerleave.c
View file @
ce1eefe6
...
@@ -34,7 +34,7 @@ void ff_audio_interleave_close(AVFormatContext *s)
...
@@ -34,7 +34,7 @@ void ff_audio_interleave_close(AVFormatContext *s)
AudioInterleaveContext
*
aic
=
st
->
priv_data
;
AudioInterleaveContext
*
aic
=
st
->
priv_data
;
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
av_fifo_free
(
aic
->
fifo
);
av_fifo_free
p
(
&
aic
->
fifo
);
}
}
}
}
...
...
libavformat/dvenc.c
View file @
ce1eefe6
...
@@ -334,7 +334,7 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
...
@@ -334,7 +334,7 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
if
(
c
->
ast
[
i
]
&&
!
(
c
->
audio_data
[
i
]
=
av_fifo_alloc
(
100
*
MAX_AUDIO_FRAME_SIZE
)))
{
if
(
c
->
ast
[
i
]
&&
!
(
c
->
audio_data
[
i
]
=
av_fifo_alloc
(
100
*
MAX_AUDIO_FRAME_SIZE
)))
{
while
(
i
>
0
)
{
while
(
i
>
0
)
{
i
--
;
i
--
;
av_fifo_free
(
c
->
audio_data
[
i
]);
av_fifo_free
p
(
&
c
->
audio_data
[
i
]);
}
}
goto
bail_out
;
goto
bail_out
;
}
}
...
@@ -350,7 +350,7 @@ static void dv_delete_mux(DVMuxContext *c)
...
@@ -350,7 +350,7 @@ static void dv_delete_mux(DVMuxContext *c)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
c
->
n_ast
;
i
++
)
for
(
i
=
0
;
i
<
c
->
n_ast
;
i
++
)
av_fifo_free
(
c
->
audio_data
[
i
]);
av_fifo_free
p
(
&
c
->
audio_data
[
i
]);
}
}
static
int
dv_write_header
(
AVFormatContext
*
s
)
static
int
dv_write_header
(
AVFormatContext
*
s
)
...
...
libavformat/mpegenc.c
View file @
ce1eefe6
...
@@ -1159,7 +1159,7 @@ static int mpeg_mux_end(AVFormatContext *ctx)
...
@@ -1159,7 +1159,7 @@ static int mpeg_mux_end(AVFormatContext *ctx)
stream
=
ctx
->
streams
[
i
]
->
priv_data
;
stream
=
ctx
->
streams
[
i
]
->
priv_data
;
assert
(
av_fifo_size
(
stream
->
fifo
)
==
0
);
assert
(
av_fifo_size
(
stream
->
fifo
)
==
0
);
av_fifo_free
(
stream
->
fifo
);
av_fifo_free
p
(
&
stream
->
fifo
);
}
}
return
0
;
return
0
;
}
}
...
...
libavformat/swfenc.c
View file @
ce1eefe6
...
@@ -490,8 +490,7 @@ static int swf_write_trailer(AVFormatContext *s)
...
@@ -490,8 +490,7 @@ static int swf_write_trailer(AVFormatContext *s)
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
video_enc
=
enc
;
video_enc
=
enc
;
else
{
else
{
av_fifo_free
(
swf
->
audio_fifo
);
av_fifo_freep
(
&
swf
->
audio_fifo
);
swf
->
audio_fifo
=
NULL
;
}
}
}
}
...
...
libavformat/udp.c
View file @
ce1eefe6
...
@@ -761,7 +761,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
...
@@ -761,7 +761,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
fail:
fail:
if
(
udp_fd
>=
0
)
if
(
udp_fd
>=
0
)
closesocket
(
udp_fd
);
closesocket
(
udp_fd
);
av_fifo_free
(
s
->
fifo
);
av_fifo_free
p
(
&
s
->
fifo
);
for
(
i
=
0
;
i
<
num_include_sources
;
i
++
)
for
(
i
=
0
;
i
<
num_include_sources
;
i
++
)
av_freep
(
&
include_sources
[
i
]);
av_freep
(
&
include_sources
[
i
]);
for
(
i
=
0
;
i
<
num_exclude_sources
;
i
++
)
for
(
i
=
0
;
i
<
num_exclude_sources
;
i
++
)
...
@@ -867,7 +867,7 @@ static int udp_close(URLContext *h)
...
@@ -867,7 +867,7 @@ static int udp_close(URLContext *h)
pthread_cond_destroy
(
&
s
->
cond
);
pthread_cond_destroy
(
&
s
->
cond
);
}
}
#endif
#endif
av_fifo_free
(
s
->
fifo
);
av_fifo_free
p
(
&
s
->
fifo
);
return
0
;
return
0
;
}
}
...
...
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