diff options
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/decoding_encoding.c | 8 | ||||
-rw-r--r-- | doc/examples/muxing.c | 2 |
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) |