diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-26 13:36:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-26 13:36:45 +0200 |
commit | cd05c4060a2f170ab061ce59ce896a5fa1c53a15 (patch) | |
tree | fd7ace3bba9456566df0589cf8f65e0d53a48adb | |
parent | 1906e00030b3f1cda2a5cf3abb3fcb08433eaa34 (diff) | |
download | ffmpeg-cd05c4060a2f170ab061ce59ce896a5fa1c53a15.tar.gz |
avformat/mpegenc: minor simplification / use AV_WB16()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 811fe2d9c3..ad07aa6b69 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -265,8 +265,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf,int only_for_str flush_put_bits(&pb); size = put_bits_ptr(&pb) - pb.buf; /* patch packet size */ - buf[4] = (size - 6) >> 8; - buf[5] = (size - 6) & 0xff; + AV_WB16(buf + 4, size - 6); return size; } |