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 /libavfilter | |
parent | 7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff) | |
download | ffmpeg-streaming-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.zip ffmpeg-streaming-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz |
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/lavfutils.c | 2 | ||||
-rw-r--r-- | libavfilter/src_movie.c | 6 | ||||
-rw-r--r-- | libavfilter/vf_mcdeint.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_subtitles.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 9952e6e..706badf 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -95,7 +95,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], av_image_copy(data, linesize, (const uint8_t **)frame->data, frame->linesize, *pix_fmt, *w, *h); end: - av_free_packet(&pkt); + av_packet_unref(&pkt); avcodec_close(codec_ctx); avformat_close_input(&format_ctx); av_frame_free(&frame); diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 0c2ceed..82d2bcd 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -490,7 +490,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) pkt_out_id = pkt->stream_index > movie->max_stream_index ? -1 : movie->out_index[pkt->stream_index]; if (pkt_out_id < 0) { - av_free_packet(&movie->pkt0); + av_packet_unref(&movie->pkt0); pkt->size = 0; /* ready for next run */ pkt->data = NULL; return 0; @@ -517,7 +517,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) if (ret < 0) { av_log(ctx, AV_LOG_WARNING, "Decode error: %s\n", av_err2str(ret)); av_frame_free(&frame); - av_free_packet(&movie->pkt0); + av_packet_unref(&movie->pkt0); movie->pkt.size = 0; movie->pkt.data = NULL; return 0; @@ -528,7 +528,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) pkt->data += ret; pkt->size -= ret; if (pkt->size <= 0) { - av_free_packet(&movie->pkt0); + av_packet_unref(&movie->pkt0); pkt->size = 0; /* ready for next run */ pkt->data = NULL; } diff --git a/libavfilter/vf_mcdeint.c b/libavfilter/vf_mcdeint.c index 38a299e..e1c865a 100644 --- a/libavfilter/vf_mcdeint.c +++ b/libavfilter/vf_mcdeint.c @@ -277,7 +277,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) mcdeint->parity ^= 1; end: - av_free_packet(&pkt); + av_packet_unref(&pkt); av_frame_free(&inpic); if (ret < 0) { av_frame_free(&outpic); diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index b0d016c..63b22c3 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -444,7 +444,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx) } } } - av_free_packet(&pkt); + av_packet_unref(&pkt); avsubtitle_free(&sub); } |