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

Function write_stream_codec

libavformat/wtvenc.c:318–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318static int write_stream_codec(AVFormatContext *s, AVStream * st)
319{
320 AVIOContext *pb = s->pb;
321 int ret;
322 write_chunk_header2(s, &ff_stream1_guid, 0x80000000 | 0x01);
323
324 avio_wl32(pb, 0x01);
325 write_pad(pb, 4);
326 write_pad(pb, 4);
327
328 ret = write_stream_codec_info(s, st);
329 if (ret < 0) {
330 av_log(s, AV_LOG_ERROR, "write stream codec info failed codec_type(0x%x)\n", st->codecpar->codec_type);
331 return -1;
332 }
333
334 finish_chunk(s);
335 return 0;
336}
337
338static void write_sync(AVFormatContext *s)
339{

Callers 1

write_headerFunction · 0.85

Calls 5

write_chunk_header2Function · 0.85
avio_wl32Function · 0.85
write_stream_codec_infoFunction · 0.85
av_logFunction · 0.85
finish_chunkFunction · 0.85

Tested by

no test coverage detected