diff options
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c index c9fa38aa5b..aeb2fae466 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -276,7 +276,7 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) memcpy(pkt->data, hdr, copyhdrsize); ret = avio_read(pb, pkt->data + copyhdrsize, size); if (ret < 0) { - av_free_packet(pkt); + av_packet_unref(pkt); return ret; } if (ret < size) |