Browse Source

avcodec/qsvenc_h264: declare the QSVEncContext variable before using it

Should fix compilation.

Regression introduced by commit 63adb3602d

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n3.1
James Almer 9 years ago
parent
commit
5f5a97dc3d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavcodec/qsvenc_h264.c

+ 3
- 3
libavcodec/qsvenc_h264.c View File

@@ -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;


Loading…
Cancel
Save