[FFmpeg-cvslog] lavf/movenc: use two explicit bytes instead of a short.
Clément Bœsch
git at videolan.org
Wed Aug 8 23:08:37 CEST 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Aug 8 23:10:17 2012 +0200| [cb5bb521aa01afd43a6d6b5dfcebb14ab73615c6] | committer: Clément Bœsch
lavf/movenc: use two explicit bytes instead of a short.
This also avoids a pointless cast.
Idea-by: Reimar Döffinger
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb5bb521aa01afd43a6d6b5dfcebb14ab73615c6
---
libavformat/movenc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 89a181a..695bd43 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;
More information about the ffmpeg-cvslog
mailing list