| 377 | } |
| 378 | |
| 379 | static int decklink_setup_data(AVFormatContext *avctx, AVStream *st) |
| 380 | { |
| 381 | int ret = -1; |
| 382 | |
| 383 | switch(st->codecpar->codec_id) { |
| 384 | #if CONFIG_LIBKLVANC |
| 385 | case AV_CODEC_ID_SMPTE_2038: |
| 386 | /* No specific setup required */ |
| 387 | ret = 0; |
| 388 | break; |
| 389 | #endif |
| 390 | default: |
| 391 | av_log(avctx, AV_LOG_ERROR, "Unsupported data codec specified\n"); |
| 392 | break; |
| 393 | } |
| 394 | |
| 395 | return ret; |
| 396 | } |
| 397 | |
| 398 | av_cold int ff_decklink_write_trailer(AVFormatContext *avctx) |
| 399 | { |
no test coverage detected