Commit 5f5a97dc authored by James Almer's avatar James Almer

avcodec/qsvenc_h264: declare the QSVEncContext variable before using it

Should fix compilation.

Regression introduced by commit 63adb360Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent c3afe64d
......@@ -43,10 +43,10 @@ typedef struct QSVH264EncContext {
static int qsv_h264_set_encode_ctrl(AVCodecContext *avctx,
const AVFrame *frame, mfxEncodeCtrl* enc_ctrl)
{
QSVH264EncContext *qh264 = avctx->priv_data;
QSVEncContext *q = &qh264->qsv;
if (q->a53_cc && frame) {
AVFrameSideData *side_data = NULL;
QSVH264EncContext *qh264 = avctx->priv_data;
QSVEncContext *q = &qh264->qsv;
mfxPayload* payload;
mfxU8* sei_data;
size_t sei_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment