Commit 3eb56e84 authored by Philip Langdale's avatar Philip Langdale

movenc: Fix unfreed memory found by valgrind.

Signed-off-by: 's avatarPhilip Langdale <philipl@overt.org>
parent 8d6f46ab
...@@ -3154,11 +3154,12 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s, ...@@ -3154,11 +3154,12 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s,
int stream_index, int stream_index,
int64_t dts) { int64_t dts) {
AVPacket end; AVPacket end;
short data = 0;
int ret; int ret;
av_init_packet(&end); av_init_packet(&end);
end.size = sizeof (short); end.size = sizeof (short);
end.data = av_mallocz(end.size); end.data = (char *)&data;
end.pts = dts; end.pts = dts;
end.dts = dts; end.dts = dts;
end.duration = 0; end.duration = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment