Skip to content

Commit b0b81af

Browse files
committed
Fixed FreeRDP#5839: Use correct pointer to cast.
1 parent eb124ef commit b0b81af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libfreerdp/codec/h264_ffmpeg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ static enum AVPixelFormat libavcodec_get_format(struct AVCodecContext* ctx,
448448
const enum AVPixelFormat* fmts)
449449
{
450450
H264_CONTEXT* h264 = (H264_CONTEXT*)ctx->opaque;
451-
H264_CONTEXT_LIBAVCODEC* sys = (H264_CONTEXT_LIBAVCODEC*)h264->subsystem;
451+
H264_CONTEXT_LIBAVCODEC* sys = (H264_CONTEXT_LIBAVCODEC*)h264->pSystemData;
452452
const enum AVPixelFormat* p;
453453

454454
for (p = fmts; *p != AV_PIX_FMT_NONE; p++)

0 commit comments

Comments
 (0)