Commit 1df95d56 authored by reimar's avatar reimar

Use AV_WB32 instead of reimplementing it.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16635 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1a9bc421
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include "libavutil/crc.h" #include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
#include "avio.h" #include "avio.h"
#include <stdarg.h> #include <stdarg.h>
...@@ -756,10 +757,7 @@ static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size) ...@@ -756,10 +757,7 @@ static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size)
int ret; int ret;
/* packetized write: output the header */ /* packetized write: output the header */
buf1[0] = (buf_size >> 24); AV_WB32(buf1, buf_size);
buf1[1] = (buf_size >> 16);
buf1[2] = (buf_size >> 8);
buf1[3] = (buf_size);
ret= dyn_buf_write(opaque, buf1, 4); ret= dyn_buf_write(opaque, buf1, 4);
if(ret < 0) if(ret < 0)
return ret; return ret;
......
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