MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / framecrc_write_header

Function framecrc_write_header

libavformat/framecrcenc.c:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#include "mux.h"
37
38static int framecrc_write_header(struct AVFormatContext *s)
39{
40 int i;
41 for (i = 0; i < s->nb_streams; i++) {
42 AVStream *st = s->streams[i];
43 AVCodecParameters *par = st->codecpar;
44 if (par->extradata) {
45 uint32_t crc = av_adler32_update(0, par->extradata, par->extradata_size);
46 avio_printf(s->pb, "#extradata %d: %8d, 0x%08"PRIx32"\n",
47 i, par->extradata_size, crc);
48 }
49 }
50
51 return ff_framehash_write_header(s);
52}
53
54av_unused static void inline bswap(char *buf, int offset, int size)
55{

Callers

nothing calls this directly

Calls 3

av_adler32_updateFunction · 0.85
avio_printfFunction · 0.85

Tested by

no test coverage detected