| 43 | }; |
| 44 | |
| 45 | static 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 | |
| 66 | static int decssaInit( hb_work_object_t * w, hb_job_t * job ) |
| 67 | { |
no test coverage detected