summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-11 23:18:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-11 23:18:51 +0100
commit4cbf3eb9e6a88426da255a00305b5858070d192a (patch)
tree321d2b32dcc9092a9d46e508b91ae8094b95c208 /doc/examples
parentdee6d5f51c72be11aae95caf02551fb94e02d6e7 (diff)
parenteb891b3114f499e96b9faddd0b0ae856345dfbd9 (diff)
Merge commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9'
* commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9': Replace all uses of avcodec_free_frame with av_frame_free(). Conflicts: doc/examples/decoding_encoding.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/decoding_encoding.c8
-rw-r--r--doc/examples/muxing.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
index 99aeb1c8ac..9b20c020a5 100644
--- a/doc/examples/decoding_encoding.c
+++ b/doc/examples/decoding_encoding.c
@@ -227,7 +227,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);
}
@@ -329,7 +329,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);
}
/*
@@ -467,7 +467,7 @@ static void video_encode_example(const char *filename, int codec_id)
avcodec_close(c);
av_free(c);
av_freep(&frame->data[0]);
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
printf("\n");
}
@@ -609,7 +609,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close(c);
av_free(c);
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
printf("\n");
}
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 4276114306..9ad6e28281 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -280,7 +280,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
av_err2str(ret));
exit(1);
}
- avcodec_free_frame(&frame);
+ av_frame_free(&frame);
}
static void close_audio(AVFormatContext *oc, AVStream *st)