Showing the changes to libavdevice/decklink_common.cpp (1 of 3 files). Show all
Unified · Split
| @@ -103,7 +103,7 @@ HRESULT ff_decklink_get_display_name(IDeckLink *This, const char **displayName) · 102 unmodified lines | |||
| 103 | 103 | ||
| 104 | static int decklink_select_input(AVFormatContext *avctx, BMDDeckLinkConfigurationID cfg_id) | 104 | static int decklink_select_input(AVFormatContext *avctx, BMDDeckLinkConfigurationID cfg_id) |
| 105 | { | 105 | { |
| 106 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | 106 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 107 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | 107 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 108 | BMDDeckLinkAttributeID attr_id = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? BMDDeckLinkAudioInputConnections : BMDDeckLinkVideoInputConnections; | 108 | BMDDeckLinkAttributeID attr_id = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? BMDDeckLinkAudioInputConnections : BMDDeckLinkVideoInputConnections; |
| 109 | int64_t bmd_input = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? (int64_t)ctx->audio_input : (int64_t)ctx->video_input; | 109 | int64_t bmd_input = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? (int64_t)ctx->audio_input : (int64_t)ctx->video_input; |
| @@ -135,7 +135,7 @@ int ff_decklink_set_format(AVFormatContext *avctx, · 25 unmodified lines | |||
| 135 | int tb_num, int tb_den, | 135 | int tb_num, int tb_den, |
| 136 | decklink_direction_t direction, int num) | 136 | decklink_direction_t direction, int num) |
| 137 | { | 137 | { |
| 138 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | 138 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 139 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | 139 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 140 | BMDDisplayModeSupport support; | 140 | BMDDisplayModeSupport support; |
| 141 | IDeckLinkDisplayModeIterator *itermode; | 141 | IDeckLinkDisplayModeIterator *itermode; |
| @@ -255,7 +255,7 @@ int ff_decklink_list_devices(AVFormatContext *avctx) · 113 unmodified lines | |||
| 255 | 255 | ||
| 256 | int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direction) | 256 | int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direction) |
| 257 | { | 257 | { |
| 258 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | 258 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 259 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | 259 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 260 | IDeckLinkDisplayModeIterator *itermode; | 260 | IDeckLinkDisplayModeIterator *itermode; |
| 261 | IDeckLinkDisplayMode *mode; | 261 | IDeckLinkDisplayMode *mode; |
| @@ -305,8 +305,8 @@ int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direct · 43 unmodified lines | |||
| 305 | 305 | ||
| 306 | void ff_decklink_cleanup(AVFormatContext *avctx) | 306 | void ff_decklink_cleanup(AVFormatContext *avctx) |
| 307 | { | 307 | { |
| 308 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | 308 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 309 | struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx; | 309 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 310 | 310 | ||
| 311 | if (ctx->dli) | 311 | if (ctx->dli) |
| 312 | ctx->dli->Release(); | 312 | ctx->dli->Release(); |