Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 16:35:30 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 16:35:30 +0300
commitc2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch)
treefd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /libavfilter
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/lavfutils.c2
-rw-r--r--libavfilter/src_movie.c6
-rw-r--r--libavfilter/vf_mcdeint.c2
-rw-r--r--libavfilter/vf_subtitles.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
index 9952e6eab6..706badf63d 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 0c2ceed316..82d2bcda10 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 38a299ea4c..e1c865a30a 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 b0d016c0e5..63b22c3721 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);
}