| 358 | } |
| 359 | |
| 360 | static int decklink_setup_subtitle(AVFormatContext *avctx, AVStream *st) |
| 361 | { |
| 362 | int ret = -1; |
| 363 | |
| 364 | switch(st->codecpar->codec_id) { |
| 365 | #if CONFIG_LIBKLVANC |
| 366 | case AV_CODEC_ID_EIA_608: |
| 367 | /* No special setup required */ |
| 368 | ret = 0; |
| 369 | break; |
| 370 | #endif |
| 371 | default: |
| 372 | av_log(avctx, AV_LOG_ERROR, "Unsupported subtitle codec specified\n"); |
| 373 | break; |
| 374 | } |
| 375 | |
| 376 | return ret; |
| 377 | } |
| 378 | |
| 379 | static int decklink_setup_data(AVFormatContext *avctx, AVStream *st) |
| 380 | { |
no test coverage detected