You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avdevice/decklink: Suppress warning about misuse of struct instead of class
When building with Clang, the following warning is shown: warning: struct 'IDeckLinkVideoFrame' was previously declared as a class [-Wmismatched-tags] The function incorrectly casts IDeckLinkVideoFrame as a struct instead of a class pointer. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
fc93eca126
commit
5409f065f2
@@ -321,7 +321,7 @@ static int decklink_write_video_packet(AVFormatContext *avctx, AVPacket *pkt)
|
|||||||
pthread_mutex_unlock(&ctx->mutex);
|
pthread_mutex_unlock(&ctx->mutex);
|
||||||
|
|
||||||
/* Schedule frame for playback. */
|
/* Schedule frame for playback. */
|
||||||
hr = ctx->dlo->ScheduleVideoFrame((struct IDeckLinkVideoFrame *) frame,
|
hr = ctx->dlo->ScheduleVideoFrame((class IDeckLinkVideoFrame *) frame,
|
||||||
pkt->pts * ctx->bmd_tb_num,
|
pkt->pts * ctx->bmd_tb_num,
|
||||||
ctx->bmd_tb_num, ctx->bmd_tb_den);
|
ctx->bmd_tb_num, ctx->bmd_tb_den);
|
||||||
/* Pass ownership to DeckLink, or release on failure */
|
/* Pass ownership to DeckLink, or release on failure */
|
||||||
|
Reference in New Issue
Block a user