svq3: remove a pointless if()

The H264 context is always uninitialized at this point.
pull/8/merge
Anton Khirnov 12 years ago
parent 2491f9ee29
commit d9ebb00dcb
  1. 2
      libavcodec/svq3.c

@ -856,7 +856,6 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
h->is_complex = 1;
avctx->pix_fmt = avctx->codec->pix_fmts[0];
if (!s->context_initialized) {
h->chroma_qp[0] = h->chroma_qp[1] = 4;
svq3->halfpel_flag = 1;
@ -997,7 +996,6 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "svq3 memory allocation failed\n");
return AVERROR(ENOMEM);
}
}
return 0;
}

Loading…
Cancel
Save