Commit b6ba3364 authored by aurel's avatar aurel

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7127 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45e3598b
...@@ -988,8 +988,7 @@ matroska_deliver_packet (MatroskaDemuxContext *matroska, ...@@ -988,8 +988,7 @@ matroska_deliver_packet (MatroskaDemuxContext *matroska,
av_realloc(matroska->packets, (matroska->num_packets - 1) * av_realloc(matroska->packets, (matroska->num_packets - 1) *
sizeof(AVPacket *)); sizeof(AVPacket *));
} else { } else {
av_free(matroska->packets); av_freep(&matroska->packets);
matroska->packets = NULL;
} }
matroska->num_packets--; matroska->num_packets--;
return 0; 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