Commit cd05c406 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegenc: minor simplification / use AV_WB16()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1906e000
...@@ -265,8 +265,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf,int only_for_str ...@@ -265,8 +265,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf,int only_for_str
flush_put_bits(&pb); flush_put_bits(&pb);
size = put_bits_ptr(&pb) - pb.buf; size = put_bits_ptr(&pb) - pb.buf;
/* patch packet size */ /* patch packet size */
buf[4] = (size - 6) >> 8; AV_WB16(buf + 4, size - 6);
buf[5] = (size - 6) & 0xff;
return size; return size;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment