Mercurial > libavformat.hg
changeset 4233:4b550415c874 libavformat
Use AV_WB32 instead of reimplementing it.
author | reimar |
---|---|
date | Fri, 16 Jan 2009 15:34:37 +0000 |
parents | 5defcf4194fb |
children | 3d57729868a9 |
files | aviobuf.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Fri Jan 16 15:32:33 2009 +0000 +++ b/aviobuf.c Fri Jan 16 15:34:37 2009 +0000 @@ -20,6 +20,7 @@ */ #include "libavutil/crc.h" +#include "libavutil/intreadwrite.h" #include "avformat.h" #include "avio.h" #include <stdarg.h> @@ -756,10 +757,7 @@ int ret; /* packetized write: output the header */ - buf1[0] = (buf_size >> 24); - buf1[1] = (buf_size >> 16); - buf1[2] = (buf_size >> 8); - buf1[3] = (buf_size); + AV_WB32(buf1, buf_size); ret= dyn_buf_write(opaque, buf1, 4); if(ret < 0) return ret;