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
eb891b31
Commit
eb891b31
authored
Nov 29, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace all uses of avcodec_free_frame with av_frame_free().
parent
17a10d51
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
avconv.c
avconv.c
+1
-1
avplay.c
avplay.c
+1
-1
output.c
doc/examples/output.c
+1
-1
api-example.c
libavcodec/api-example.c
+4
-4
utils.c
libavformat/utils.c
+1
-1
No files found.
avconv.c
View file @
eb891b31
...
...
@@ -182,7 +182,7 @@ static void avconv_cleanup(int ret)
bsfc
=
next
;
}
output_streams
[
i
]
->
bitstream_filters
=
NULL
;
av
codec_free_fram
e
(
&
output_streams
[
i
]
->
filtered_frame
);
av
_frame_fre
e
(
&
output_streams
[
i
]
->
filtered_frame
);
av_parser_close
(
output_streams
[
i
]
->
parser
);
...
...
avplay.c
View file @
eb891b31
...
...
@@ -2152,7 +2152,7 @@ static void stream_component_close(VideoState *is, int stream_index)
avresample_free
(
&
is
->
avr
);
av_freep
(
&
is
->
audio_buf1
);
is
->
audio_buf
=
NULL
;
av
codec_free_fram
e
(
&
is
->
frame
);
av
_frame_fre
e
(
&
is
->
frame
);
if
(
is
->
rdft
)
{
av_rdft_end
(
is
->
rdft
);
...
...
doc/examples/output.c
View file @
eb891b31
...
...
@@ -163,7 +163,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
fprintf
(
stderr
,
"Error while writing audio frame
\n
"
);
exit
(
1
);
}
av
codec_free_fram
e
(
&
frame
);
av
_frame_fre
e
(
&
frame
);
}
static
void
close_audio
(
AVFormatContext
*
oc
,
AVStream
*
st
)
...
...
libavcodec/api-example.c
View file @
eb891b31
...
...
@@ -212,7 +212,7 @@ static void audio_encode_example(const char *filename)
fclose
(
f
);
av_freep
(
&
samples
);
av
codec_free_fram
e
(
&
frame
);
av
_frame_fre
e
(
&
frame
);
avcodec_close
(
c
);
av_free
(
c
);
}
...
...
@@ -308,7 +308,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
avcodec_close
(
c
);
av_free
(
c
);
av
codec_free_fram
e
(
&
decoded_frame
);
av
_frame_fre
e
(
&
decoded_frame
);
}
/*
...
...
@@ -432,7 +432,7 @@ static void video_encode_example(const char *filename)
avcodec_close
(
c
);
av_free
(
c
);
av_freep
(
&
picture
->
data
[
0
]);
av
codec_free_fram
e
(
&
picture
);
av
_frame_fre
e
(
&
picture
);
printf
(
"
\n
"
);
}
...
...
@@ -568,7 +568,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close
(
c
);
av_free
(
c
);
av
codec_free_fram
e
(
&
picture
);
av
_frame_fre
e
(
&
picture
);
printf
(
"
\n
"
);
}
...
...
libavformat/utils.c
View file @
eb891b31
...
...
@@ -1995,7 +1995,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
}
fail
:
av
codec_free_fram
e
(
&
frame
);
av
_frame_fre
e
(
&
frame
);
return
ret
;
}
...
...
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