]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/movenc.c
oggdec: simplify start time calculation code.
[ffmpeg] / libavformat / movenc.c
index 1d24383241cff35d688a7e08aa2b1ee20726ff88..910b9d472824a9bb2c384042e7e88fcf79b88afe 100644 (file)
@@ -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;