diff options
Diffstat (limited to 'libavformat/dfa.c')
-rw-r--r-- | libavformat/dfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dfa.c b/libavformat/dfa.c index c097d72cf8..03dca4f5c3 100644 --- a/libavformat/dfa.c +++ b/libavformat/dfa.c @@ -82,7 +82,7 @@ static int dfa_read_packet(AVFormatContext *s, AVPacket *pkt) if (!first) { ret = av_append_packet(pb, pkt, 12); if (ret < 0) { - av_free_packet(pkt); + av_packet_unref(pkt); return ret; } } else @@ -103,7 +103,7 @@ static int dfa_read_packet(AVFormatContext *s, AVPacket *pkt) } ret = av_append_packet(pb, pkt, frame_size); if (ret < 0) { - av_free_packet(pkt); + av_packet_unref(pkt); return ret; } } |