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 | |
parent | 7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff) | |
download | ffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz |
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/decoding_encoding.c | 2 | ||||
-rw-r--r-- | doc/examples/demuxing_decoding.c | 2 | ||||
-rw-r--r-- | doc/examples/extract_mvs.c | 2 | ||||
-rw-r--r-- | doc/examples/filtering_audio.c | 4 | ||||
-rw-r--r-- | doc/examples/filtering_video.c | 2 | ||||
-rw-r--r-- | doc/examples/remuxing.c | 2 | ||||
-rw-r--r-- | doc/examples/transcoding.c | 4 |
7 files changed, 9 insertions, 9 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index 4ce3b26795..06a98a630e 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -211,7 +211,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); } } diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c index e6624076cf..59e0ccc986 100644 --- a/doc/examples/demuxing_decoding.c +++ b/doc/examples/demuxing_decoding.c @@ -326,7 +326,7 @@ int main (int argc, char **argv) pkt.data += ret; pkt.size -= ret; } while (pkt.size > 0); - av_free_packet(&orig_pkt); + av_packet_unref(&orig_pkt); } /* flush cached frames */ diff --git a/doc/examples/extract_mvs.c b/doc/examples/extract_mvs.c index d6fd61335e..975189c77d 100644 --- a/doc/examples/extract_mvs.c +++ b/doc/examples/extract_mvs.c @@ -167,7 +167,7 @@ int main(int argc, char **argv) pkt.data += ret; pkt.size -= ret; } while (pkt.size > 0); - av_free_packet(&orig_pkt); + av_packet_unref(&orig_pkt); } /* flush cached frames */ diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 6c74ec326d..89c80cfd55 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -273,10 +273,10 @@ int main(int argc, char **argv) } if (packet.size <= 0) - av_free_packet(&packet0); + av_packet_unref(&packet0); } else { /* discard non-wanted packets */ - av_free_packet(&packet0); + av_packet_unref(&packet0); } } end: diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c index 5600572dec..3dabf13b10 100644 --- a/doc/examples/filtering_video.c +++ b/doc/examples/filtering_video.c @@ -262,7 +262,7 @@ int main(int argc, char **argv) av_frame_unref(frame); } } - av_free_packet(&packet); + av_packet_unref(&packet); } end: avfilter_graph_free(&filter_graph); diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c index 33037f77ad..65437d9abd 100644 --- a/doc/examples/remuxing.c +++ b/doc/examples/remuxing.c @@ -143,7 +143,7 @@ int main(int argc, char **argv) fprintf(stderr, "Error muxing packet\n"); break; } - av_free_packet(&pkt); + av_packet_unref(&pkt); } av_write_trailer(ofmt_ctx); 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); |