mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Use AV_WB32 instead of reimplementing it.
Originally committed as revision 16635 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dc2c2eea41
commit
aa805f94c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user