X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fnsvdec.c;h=95fab644a7af606a4acfa69bbe5f06e2c2ad3f3e;hb=d3d4bc4784d911236b232e56e4ae476c484381c8;hp=de55396508816771a5c69d46447a5473e1b97cf6;hpb=9a6f1eea3e1d6412d2bf1d4bca7dc01122208f42;p=ffmpeg diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index de553965088..95fab644a7a 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -713,9 +713,9 @@ static int nsv_read_close(AVFormatContext *s) av_freep(&nsv->nsvs_file_offset); av_freep(&nsv->nsvs_timestamps); if (nsv->ahead[0].data) - av_free_packet(&nsv->ahead[0]); + av_packet_unref(&nsv->ahead[0]); if (nsv->ahead[1].data) - av_free_packet(&nsv->ahead[1]); + av_packet_unref(&nsv->ahead[1]); return 0; }