Showing the changes to libavdevice/decklink_dec.cpp (1 of 3 files). Show all
Unified · Split
| @@ -206,8 +206,8 @@ private: · 205 unmodified lines | ||
| 206 | 206 | decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_refCount(0) |
| 207 | 207 | { |
| 208 | 208 | avctx = _avctx; |
| 209 | − decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | |
| 210 | − ctx = (struct decklink_ctx *) cctx->ctx; | |
| 209 | + decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; | |
| 210 | + ctx = (struct decklink_ctx *)cctx->ctx; | |
| 211 | 211 | initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE; |
| 212 | 212 | pthread_mutex_init(&m_mutex, NULL); |
| 213 | 213 | } |
| @@ -431,8 +431,8 @@ HRESULT decklink_input_callback::VideoInputFormatChanged( · 217 unmodified lines | ||
| 431 | 431 | |
| 432 | 432 | static HRESULT decklink_start_input(AVFormatContext *avctx) |
| 433 | 433 | { |
| 434 | − struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | |
| 435 | − struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx; | |
| 434 | + struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; | |
| 435 | + struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | |
| 436 | 436 | |
| 437 | 437 | ctx->input_callback = new decklink_input_callback(avctx); |
| 438 | 438 | ctx->dli->SetCallback(ctx->input_callback); |
| @@ -443,8 +443,8 @@ extern "C" { · 4 unmodified lines | ||
| 443 | 443 | |
| 444 | 444 | av_cold int ff_decklink_read_close(AVFormatContext *avctx) |
| 445 | 445 | { |
| 446 | − struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | |
| 447 | − struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx; | |
| 446 | + struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; | |
| 447 | + struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | |
| 448 | 448 | |
| 449 | 449 | if (ctx->capture_started) { |
| 450 | 450 | ctx->dli->StopStreams(); |
| @@ -462,7 +462,7 @@ av_cold int ff_decklink_read_close(AVFormatContext *avctx) · 11 unmodified lines | ||
| 462 | 462 | |
| 463 | 463 | av_cold int ff_decklink_read_header(AVFormatContext *avctx) |
| 464 | 464 | { |
| 465 | − struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | |
| 465 | + struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; | |
| 466 | 466 | struct decklink_ctx *ctx; |
| 467 | 467 | AVStream *st; |
| 468 | 468 | HRESULT result; |
| @@ -638,8 +638,8 @@ error: · 169 unmodified lines | ||
| 638 | 638 | |
| 639 | 639 | int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt) |
| 640 | 640 | { |
| 641 | − struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; | |
| 642 | − struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx; | |
| 641 | + struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; | |
| 642 | + struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; | |
| 643 | 643 | AVFrame *frame = ctx->video_st->codec->coded_frame; |
| 644 | 644 | |
| 645 | 645 | avpacket_queue_get(&ctx->queue, pkt, 1); |