MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / extradataInit

Function extradataInit

libhb/decssasub.c:45–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45static int extradataInit( hb_work_private_t * pv )
46{
47 if (pv->ic->nb_streams < 1)
48 {
49 hb_error("SSA demux found no streams");
50 return 1;
51 }
52
53 AVStream * st = pv->ic->streams[0];
54 if (st->codecpar->codec_id != AV_CODEC_ID_ASS)
55 {
56 hb_error("SSA demux found wrong codec_id %x", st->codecpar->codec_id);
57 return 1;
58 }
59 if (st->codecpar->extradata != NULL)
60 {
61 hb_set_extradata(&pv->subtitle->extradata, st->codecpar->extradata, st->codecpar->extradata_size);
62 }
63 return 0;
64}
65
66static int decssaInit( hb_work_object_t * w, hb_job_t * job )
67{

Callers 1

decssaInitFunction · 0.85

Calls 2

hb_errorFunction · 0.85
hb_set_extradataFunction · 0.85

Tested by

no test coverage detected