History

decklink: Remove unneeded spaces in initializers

Patrick Felt committed 10 years ago

Commit e9659d11 parent e0b8cba3 files · +27 −27Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 3 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+9−9
@@ -206,8 +206,8 @@ private: · 205 unmodified lines
206206 decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_refCount(0)
207207 {
208208 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;
211211 initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;
212212 pthread_mutex_init(&m_mutex, NULL);
213213 }
@@ -431,8 +431,8 @@ HRESULT decklink_input_callback::VideoInputFormatChanged( · 217 unmodified lines
431431
432432 static HRESULT decklink_start_input(AVFormatContext *avctx)
433433 {
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;
436436
437437 ctx->input_callback = new decklink_input_callback(avctx);
438438 ctx->dli->SetCallback(ctx->input_callback);
@@ -443,8 +443,8 @@ extern "C" { · 4 unmodified lines
443443
444444 av_cold int ff_decklink_read_close(AVFormatContext *avctx)
445445 {
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;
448448
449449 if (ctx->capture_started) {
450450 ctx->dli->StopStreams();
@@ -462,7 +462,7 @@ av_cold int ff_decklink_read_close(AVFormatContext *avctx) · 11 unmodified lines
462462
463463 av_cold int ff_decklink_read_header(AVFormatContext *avctx)
464464 {
465− struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
465+ struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
466466 struct decklink_ctx *ctx;
467467 AVStream *st;
468468 HRESULT result;
@@ -638,8 +638,8 @@ error: · 169 unmodified lines
638638
639639 int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
640640 {
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;
643643 AVFrame *frame = ctx->video_st->codec->coded_frame;
644644
645645 avpacket_queue_get(&ctx->queue, pkt, 1);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t