diff options
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 89a181acf3..695bd436ee 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3145,12 +3145,12 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s, int stream_index, int64_t dts) { AVPacket end; - short data = 0; + uint8_t data[2] = {0}; int ret; av_init_packet(&end); - end.size = sizeof (short); - end.data = (char *)&data; + end.size = sizeof(data); + end.data = data; end.pts = dts; end.dts = dts; end.duration = 0; |