diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-08-08 23:10:17 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-08 23:13:52 +0200 |
commit | cb5bb521aa01afd43a6d6b5dfcebb14ab73615c6 (patch) | |
tree | 1a58cce70738fd4ff61a1f5ed2b1eeb8b176f26d /libavformat | |
parent | e6dd2852ca1f73d7af7f1ac495c86438308fc22e (diff) | |
download | ffmpeg-cb5bb521aa01afd43a6d6b5dfcebb14ab73615c6.tar.gz |
lavf/movenc: use two explicit bytes instead of a short.
This also avoids a pointless cast.
Idea-by: Reimar Döffinger
Diffstat (limited to 'libavformat')
-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; |