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:
authorPhilip Langdale <philipl@overt.org>2012-08-05 19:26:49 +0400
committerPhilip Langdale <philipl@overt.org>2012-08-05 19:27:49 +0400
commit3eb56e8434e621273e16385fea4524516c95b6e6 (patch)
tree8814402b0ddb089042c7f4e88ed857d63fe336ac
parent8d6f46ab2c99a22db75bf42b2eacb2121347735e (diff)
movenc: Fix unfreed memory found by valgrind.
Signed-off-by: Philip Langdale <philipl@overt.org>
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1d24383241..910b9d4728 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3154,11 +3154,12 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s,
int stream_index,
int64_t dts) {
AVPacket end;
+ short data = 0;
int ret;
av_init_packet(&end);
end.size = sizeof (short);
- end.data = av_mallocz(end.size);
+ end.data = (char *)&data;
end.pts = dts;
end.dts = dts;
end.duration = 0;