diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-27 14:35:30 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-27 14:35:30 +0100 |
commit | c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch) | |
tree | fd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /doc/examples/transcoding.c | |
parent | 7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff) | |
download | ffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz |
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'doc/examples/transcoding.c')
-rw-r--r-- | doc/examples/transcoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 20c9e272ca..d5d410b168 100644 --- a/doc/examples/transcoding.c +++ b/doc/examples/transcoding.c @@ -536,7 +536,7 @@ int main(int argc, char **argv) if (ret < 0) goto end; } - av_free_packet(&packet); + av_packet_unref(&packet); } /* flush filters and encoders */ @@ -560,7 +560,7 @@ int main(int argc, char **argv) av_write_trailer(ofmt_ctx); end: - av_free_packet(&packet); + av_packet_unref(&packet); av_frame_free(&frame); for (i = 0; i < ifmt_ctx->nb_streams; i++) { avcodec_close(ifmt_ctx->streams[i]->codec); |