summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-29 21:41:52 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-11 20:39:54 +0100
commiteb891b3114f499e96b9faddd0b0ae856345dfbd9 (patch)
treef3c9c3e1247c7ae3a36fd41080a76a2efb67c932
parent17a10d51b8351ce9a57fcb6537b6a3c6ec8ba5e9 (diff)
Replace all uses of avcodec_free_frame with av_frame_free().
-rw-r--r--avconv.c2
-rw-r--r--avplay.c2
-rw-r--r--doc/examples/output.c2
-rw-r--r--libavcodec/api-example.c8
-rw-r--r--libavformat/utils.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/avconv.c b/avconv.c
index 908a0c75da..0cbbcb1ff2 100644
--- a/avconv.c
+++ b/avconv.c
@@ -182,7 +182,7 @@ static void avconv_cleanup(int ret)
bsfc = next;
}
output_streams[i]->bitstream_filters = NULL;
- avcodec_free_frame(&output_streams[i]->filtered_frame);
+ av_frame_free(&output_streams[i]->filtered_frame);
av_parser_close(output_streams[i]->parser);
diff --git a/avplay.c b/avplay.c
index 96e0cf2d9e..1cec241c20 100644
--- a/avplay.c
+++ b/avplay.c
@@ -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;
- avcodec_free_frame(&is->frame);
+ av_frame_free(&is->frame);
if (is->rdft) {
av_rdft_end(is->rdft);
diff --git a/doc/examples/output.c b/doc/examples/output.c
index 2cd11f2ddc..06fdf509ac 100644
--- a/doc/examples/output.c
+++ b/doc/examples/output.c
@@ -163,7 +163,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
fprintf(stderr, "Error while writing audio frame\n");
exit(1);
}
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
}
static void close_audio(AVFormatContext *oc, AVStream *st)
diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index 54a1ecaa3c..11a4412abb 100644
--- a/libavcodec/api-example.c
+++ b/libavcodec/api-example.c
@@ -212,7 +212,7 @@ static void audio_encode_example(const char *filename)
fclose(f);
av_freep(&samples);
- avcodec_free_frame(&frame);
+ av_frame_free(&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);
- avcodec_free_frame(&decoded_frame);
+ av_frame_free(&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]);
- avcodec_free_frame(&picture);
+ av_frame_free(&picture);
printf("\n");
}
@@ -568,7 +568,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close(c);
av_free(c);
- avcodec_free_frame(&picture);
+ av_frame_free(&picture);
printf("\n");
}
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ea1d927b52..36770d9b80 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1995,7 +1995,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
}
fail:
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
return ret;
}