You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user