summaryrefslogtreecommitdiff
path: root/libavformat/nutenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-17 12:56:25 +0100
committerAnton Khirnov <anton@khirnov.net>2011-03-30 07:47:08 +0200
commit4c4427a75da1cbb81f3097e0a0fbd6755516bc0d (patch)
tree029c58e33df34304098af90a94b87f549f281b86 /libavformat/nutenc.c
parentce02f9becfc2e89bf552a86303b00d0b36323cdf (diff)
downloadffmpeg-4c4427a75da1cbb81f3097e0a0fbd6755516bc0d.tar.gz
avio: make init_checksum() internal.
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 89cfb97381..8a2a6faba1 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -24,6 +24,7 @@
#include "libavcodec/mpegaudiodata.h"
#include "nut.h"
#include "internal.h"
+#include "avio_internal.h"
static int find_expected_header(AVCodecContext *c, int size, int key_frame, uint8_t out[64]){
int sample_rate= c->sample_rate;
@@ -284,14 +285,14 @@ static void put_packet(NUTContext *nut, AVIOContext *bc, AVIOContext *dyn_bc, in
int forw_ptr= dyn_size + 4*calculate_checksum;
if(forw_ptr > 4096)
- init_checksum(bc, ff_crc04C11DB7_update, 0);
+ ffio_init_checksum(bc, ff_crc04C11DB7_update, 0);
avio_wb64(bc, startcode);
ff_put_v(bc, forw_ptr);
if(forw_ptr > 4096)
avio_wl32(bc, get_checksum(bc));
if(calculate_checksum)
- init_checksum(bc, ff_crc04C11DB7_update, 0);
+ ffio_init_checksum(bc, ff_crc04C11DB7_update, 0);
avio_write(bc, dyn_buf, dyn_size);
if(calculate_checksum)
avio_wl32(bc, get_checksum(bc));
@@ -806,7 +807,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){
needed_flags= get_needed_flags(nut, nus, fc, pkt);
header_idx= fc->header_idx;
- init_checksum(bc, ff_crc04C11DB7_update, 0);
+ ffio_init_checksum(bc, ff_crc04C11DB7_update, 0);
avio_w8(bc, frame_code);
if(flags & FLAG_CODED){
ff_put_v(bc, (flags^needed_flags) & ~(FLAG_CODED));