mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavf/movenc: use two explicit bytes instead of a short.
This also avoids a pointless cast. Idea-by: Reimar Döffinger
This commit is contained in:
parent
e6dd2852ca
commit
cb5bb521aa
1 changed files with 3 additions and 3 deletions
|
|
@ -3145,12 +3145,12 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s,
|
||||||
int stream_index,
|
int stream_index,
|
||||||
int64_t dts) {
|
int64_t dts) {
|
||||||
AVPacket end;
|
AVPacket end;
|
||||||
short data = 0;
|
uint8_t data[2] = {0};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
av_init_packet(&end);
|
av_init_packet(&end);
|
||||||
end.size = sizeof (short);
|
end.size = sizeof(data);
|
||||||
end.data = (char *)&data;
|
end.data = data;
|
||||||
end.pts = dts;
|
end.pts = dts;
|
||||||
end.dts = dts;
|
end.dts = dts;
|
||||||
end.duration = 0;
|
end.duration = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue