diff options
author | Marton Balint <cus@passwd.hu> | 2016-10-13 23:56:45 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-10-21 20:24:12 +0200 |
commit | 2f3015c25aaecf0307a82e38099c04b783223013 (patch) | |
tree | c44ae7c0315ea46205f4f7fcc5ffd9b21a052415 /libavdevice/decklink_dec.cpp | |
parent | fecb3e82a4ba09dc11a51ad0961ab491881a53a1 (diff) |
lavd/decklink_dec: add option to disable drawing bars on signal loss
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/decklink_dec.cpp')
-rw-r--r-- | libavdevice/decklink_dec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp index 24b42e3eb0..5318bbe690 100644 --- a/libavdevice/decklink_dec.cpp +++ b/libavdevice/decklink_dec.cpp @@ -309,7 +309,7 @@ HRESULT decklink_input_callback::VideoInputFrameArrived( ctx->video_st->time_base.den); if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) { - if (videoFrame->GetPixelFormat() == bmdFormat8BitYUV) { + if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) { unsigned bars[8] = { 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035, 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 }; @@ -485,6 +485,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) ctx->audio_input = decklink_audio_connection_map[cctx->audio_input]; ctx->audio_pts_source = cctx->audio_pts_source; ctx->video_pts_source = cctx->video_pts_source; + ctx->draw_bars = cctx->draw_bars; cctx->ctx = ctx; #if !CONFIG_LIBZVBI |