avdevice/decklink_enc: fix unused variable compiler warnings

Due to refactoring, the ctx/cctx variables are never actually used
in ff_decklink_write_packet(), so just remove them.

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Devin Heitmueller 2023-03-03 16:08:15 -05:00 committed by Marton Balint
parent 25d09ac0eb
commit aca7ef78cc
1 changed files with 0 additions and 2 deletions

View File

@ -627,8 +627,6 @@ error:
int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt) int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt)
{ {
struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
AVStream *st = avctx->streams[pkt->stream_index]; AVStream *st = avctx->streams[pkt->stream_index];
if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)