diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-01-16 15:34:37 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-01-16 15:34:37 +0000 |
commit | aa805f94c51bdbe302f1123d961085071a17b0d4 (patch) | |
tree | b7a246f644b36342ecf66c697487e4f7bca045c6 | |
parent | dc2c2eea41200d317952b856b1f7c79e9da24475 (diff) | |
download | ffmpeg-aa805f94c51bdbe302f1123d961085071a17b0d4.tar.gz |
Use AV_WB32 instead of reimplementing it.
Originally committed as revision 16635 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/aviobuf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 34a55d5f58..defd20789b 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -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 @@ static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size) 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; |