summaryrefslogtreecommitdiff
path: root/doc/examples/decoding_encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/decoding_encoding.c')
-rw-r--r--doc/examples/decoding_encoding.c8
1 files changed, 4 insertions, 4 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");
}