diff options
Diffstat (limited to 'doc/examples/decoding_encoding.c')
-rw-r--r-- | doc/examples/decoding_encoding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index fb386eb184..4ce3b26795 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -225,7 +225,7 @@ static void audio_encode_example(const char *filename) if (got_output) { fwrite(pkt.data, 1, pkt.size, f); - av_free_packet(&pkt); + av_packet_unref(&pkt); } } fclose(f); @@ -454,7 +454,7 @@ static void video_encode_example(const char *filename, int codec_id) if (got_output) { printf("Write frame %3d (size=%5d)\n", i, pkt.size); fwrite(pkt.data, 1, pkt.size, f); - av_free_packet(&pkt); + av_packet_unref(&pkt); } } @@ -471,7 +471,7 @@ static void video_encode_example(const char *filename, int codec_id) if (got_output) { printf("Write frame %3d (size=%5d)\n", i, pkt.size); fwrite(pkt.data, 1, pkt.size, f); - av_free_packet(&pkt); + av_packet_unref(&pkt); } } |