Commit a76920d8 authored by Aurelien Jacobs's avatar Aurelien Jacobs

simplify free()+set to NULL using av_freep()

Originally committed as revision 7127 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3f9fea72
......@@ -988,8 +988,7 @@ matroska_deliver_packet (MatroskaDemuxContext *matroska,
av_realloc(matroska->packets, (matroska->num_packets - 1) *
sizeof(AVPacket *));
} else {
av_free(matroska->packets);
matroska->packets = NULL;
av_freep(&matroska->packets);
}
matroska->num_packets--;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment