[SCM] libav/experimental: matroskadec: use av_freep(&x) instead of av_free(x); x=NULL
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:27:02 UTC 2013
The following commit has been merged in the experimental branch:
commit 00a3431cbb27ace9120a07605e79c1d0d4c13d42
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Wed Aug 6 00:21:10 2008 +0000
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 23fea47..d7a1e39 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1304,8 +1304,7 @@ static void matroska_clear_queue(MatroskaDemuxContext *matroska)
av_free_packet(matroska->packets[n]);
av_free(matroska->packets[n]);
}
- av_free(matroska->packets);
- matroska->packets = NULL;
+ av_freep(&matroska->packets);
matroska->num_packets = 0;
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list