diff options
-rw-r--r-- | libavformat/movenc.c | 3 |
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; |