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 /libavcodec/utils.c | |
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 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b4709cb..dca0c9a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2353,7 +2353,7 @@ static int recode_subtitle(AVCodecContext *avctx, ret = FFMIN(AVERROR(errno), -1); av_log(avctx, AV_LOG_ERROR, "Unable to recode subtitle event \"%s\" " "from %s to UTF-8\n", inpkt->data, avctx->sub_charenc); - av_free_packet(&tmp); + av_packet_unref(&tmp); goto end; } outpkt->size -= outl; @@ -2460,7 +2460,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, pkt_recoded.side_data = NULL; pkt_recoded.side_data_elems = 0; - av_free_packet(&pkt_recoded); + av_packet_unref(&pkt_recoded); } if (avctx->codec_descriptor->props & AV_CODEC_PROP_BITMAP_SUB) sub->format = 0; |