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

Function wmv2_encode_init

libavcodec/wmv2enc.c:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static av_cold int wmv2_encode_init(AVCodecContext *avctx){
56 Wmv2Context * const w= avctx->priv_data;
57
58 if(MPV_encode_init(avctx) < 0)
59 return -1;
60
61 ff_wmv2_common_init(w);
62
63 avctx->extradata_size= 4;
64 avctx->extradata= av_mallocz(avctx->extradata_size + 10);
65 encode_ext_header(w);
66
67 return 0;
68}
69
70int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number)
71{

Callers

nothing calls this directly

Calls 4

MPV_encode_initFunction · 0.85
ff_wmv2_common_initFunction · 0.85
av_malloczFunction · 0.85
encode_ext_headerFunction · 0.85

Tested by

no test coverage detected