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

Function ff_decklink_write_packet

libavdevice/decklink_enc.cpp:968–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt)
969{
970 AVStream *st = avctx->streams[pkt->stream_index];
971
972 if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
973 return decklink_write_video_packet(avctx, pkt);
974 else if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
975 return decklink_write_audio_packet(avctx, pkt);
976 else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA)
977 return decklink_write_data_packet(avctx, pkt);
978 else if (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)
979 return decklink_write_subtitle_packet(avctx, pkt);
980
981 return AVERROR(EIO);
982}
983
984int ff_decklink_list_output_devices(AVFormatContext *avctx, struct AVDeviceInfoList *device_list)
985{

Callers

nothing calls this directly

Tested by

no test coverage detected