mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-04 21:25:40 +01:00
decklink: Remove unneeded spaces in initializers
This commit is contained in:
@@ -206,8 +206,8 @@ private:
|
||||
decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_refCount(0)
|
||||
{
|
||||
avctx = _avctx;
|
||||
decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
|
||||
ctx = (struct decklink_ctx *) cctx->ctx;
|
||||
decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
|
||||
ctx = (struct decklink_ctx *)cctx->ctx;
|
||||
initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;
|
||||
pthread_mutex_init(&m_mutex, NULL);
|
||||
}
|
||||
@@ -431,8 +431,8 @@ HRESULT decklink_input_callback::VideoInputFormatChanged(
|
||||
|
||||
static HRESULT decklink_start_input(AVFormatContext *avctx)
|
||||
{
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
|
||||
|
||||
ctx->input_callback = new decklink_input_callback(avctx);
|
||||
ctx->dli->SetCallback(ctx->input_callback);
|
||||
@@ -443,8 +443,8 @@ extern "C" {
|
||||
|
||||
av_cold int ff_decklink_read_close(AVFormatContext *avctx)
|
||||
{
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
|
||||
|
||||
if (ctx->capture_started) {
|
||||
ctx->dli->StopStreams();
|
||||
@@ -462,7 +462,7 @@ av_cold int ff_decklink_read_close(AVFormatContext *avctx)
|
||||
|
||||
av_cold int ff_decklink_read_header(AVFormatContext *avctx)
|
||||
{
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
|
||||
struct decklink_ctx *ctx;
|
||||
AVStream *st;
|
||||
HRESULT result;
|
||||
@@ -638,8 +638,8 @@ error:
|
||||
|
||||
int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
|
||||
{
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
|
||||
struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
|
||||
struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
|
||||
AVFrame *frame = ctx->video_st->codec->coded_frame;
|
||||
|
||||
avpacket_queue_get(&ctx->queue, pkt, 1);
|
||||
|
||||
Reference in New Issue
Block a user