Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-11-07 02:57:34 +0300
committerAurelien Jacobs <aurel@gnuage.org>2006-11-07 02:57:34 +0300
commitce99efc6ffedc7a8fbcc23690d9ff9f7e6f4bf44 (patch)
tree9d53343968277027bc2393c971dc1b2d10aceb19 /libavformat
parentae17bf6ac82b5560c259ab69160eb921e6e5af57 (diff)
Don't need to check for NULL before av_free().
And don't need to memset(0) the no more used priv_data. Originally committed as revision 6925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroska.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index 96a3dd7dff..baed1a6858 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -2609,11 +2609,8 @@ matroska_read_close (AVFormatContext *s)
MatroskaDemuxContext *matroska = s->priv_data;
int n = 0;
- if (matroska->writing_app)
av_free(matroska->writing_app);
- if (matroska->muxing_app)
av_free(matroska->muxing_app);
- if (matroska->index)
av_free(matroska->index);
if (matroska->packets != NULL) {
@@ -2626,22 +2623,15 @@ matroska_read_close (AVFormatContext *s)
for (n = 0; n < matroska->num_tracks; n++) {
MatroskaTrack *track = matroska->tracks[n];
- if (track->codec_id)
av_free(track->codec_id);
- if (track->codec_name)
av_free(track->codec_name);
- if (track->codec_priv)
av_free(track->codec_priv);
- if (track->name)
av_free(track->name);
- if (track->language)
av_free(track->language);
av_free(track);
}
- memset(matroska, 0, sizeof(MatroskaDemuxContext));
-
return 0;
}