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) *
|
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;
|
||||||
|
Reference in New Issue
Block a user