Parse any EIA-608 subtitles sitting on the queue, and write packet side data that will later be handled by construct_cc... */
| 577 | /* Parse any EIA-608 subtitles sitting on the queue, and write packet side data |
| 578 | that will later be handled by construct_cc... */ |
| 579 | static void parse_608subs(AVFormatContext *avctx, struct decklink_ctx *ctx, AVPacket *pkt) |
| 580 | { |
| 581 | size_t cc_size = ff_ccfifo_getoutputsize(&ctx->cc_fifo); |
| 582 | uint8_t *cc_data; |
| 583 | |
| 584 | if (!ff_ccfifo_ccdetected(&ctx->cc_fifo)) |
| 585 | return; |
| 586 | |
| 587 | cc_data = av_packet_new_side_data(pkt, AV_PKT_DATA_A53_CC, cc_size); |
| 588 | if (cc_data) |
| 589 | ff_ccfifo_injectbytes(&ctx->cc_fifo, cc_data, cc_size); |
| 590 | } |
| 591 | |
| 592 | static int decklink_construct_vanc(AVFormatContext *avctx, struct decklink_ctx *ctx, |
| 593 | AVPacket *pkt, decklink_frame *frame, |
no test coverage detected