mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
simplify
Originally committed as revision 13226 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
38baa83c8a
commit
252c189bc4
@ -263,9 +263,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
header[1] = 0;
|
header[1] = 0;
|
||||||
if (pkt->flags & PKT_FLAG_KEY)
|
if (pkt->flags & PKT_FLAG_KEY)
|
||||||
header[1] |= FLAG_KEY_FRAME;
|
header[1] |= FLAG_KEY_FRAME;
|
||||||
header[2] = (size >> 16) & 0xff;
|
AV_WB24(header+2, size);
|
||||||
header[3] = (size >> 8) & 0xff;
|
|
||||||
header[4] = size & 0xff;
|
|
||||||
header[5] = (duration >> 16) & 0xff;
|
header[5] = (duration >> 16) & 0xff;
|
||||||
header[6] = (duration >> 8) & 0xff;
|
header[6] = (duration >> 8) & 0xff;
|
||||||
header[7] = duration & 0xff;
|
header[7] = duration & 0xff;
|
||||||
|
Loading…
Reference in New Issue
Block a user