mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
simplify free()+set to NULL using av_freep()
Originally committed as revision 7127 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3f9fea7230
commit
a76920d843
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user