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

Function audioParserFlush

libhb/decavcodec.c:619–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619static void audioParserFlush(hb_work_object_t * w)
620{
621 hb_work_private_t * pv = w->private_data;
622 uint8_t * pout = NULL;
623 int pout_len = 0;
624 int64_t parser_pts = AV_NOPTS_VALUE;
625
626 do
627 {
628 if (pv->parser)
629 {
630 av_parser_parse2(pv->parser, pv->context, &pout, &pout_len,
631 NULL, 0,
632 AV_NOPTS_VALUE, AV_NOPTS_VALUE, 0 );
633 parser_pts = pv->parser->pts;
634 }
635
636 if (pout != NULL && pout_len > 0)
637 {
638 pv->packet_info.data = pout;
639 pv->packet_info.size = pout_len;
640 pv->packet_info.pts = parser_pts;
641
642 decodeAudio(pv, &pv->packet_info);
643 }
644 } while (pout != NULL && pout_len > 0);
645}
646
647/***********************************************************************
648 * Work

Callers 1

decavcodecaWorkFunction · 0.85

Calls 1

decodeAudioFunction · 0.85

Tested by

no test coverage detected