You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
svq3: remove a pointless if()
The H264 context is always uninitialized at this point.
This commit is contained in:
@ -856,7 +856,6 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
|
|||||||
h->is_complex = 1;
|
h->is_complex = 1;
|
||||||
avctx->pix_fmt = avctx->codec->pix_fmts[0];
|
avctx->pix_fmt = avctx->codec->pix_fmts[0];
|
||||||
|
|
||||||
if (!s->context_initialized) {
|
|
||||||
h->chroma_qp[0] = h->chroma_qp[1] = 4;
|
h->chroma_qp[0] = h->chroma_qp[1] = 4;
|
||||||
|
|
||||||
svq3->halfpel_flag = 1;
|
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");
|
av_log(avctx, AV_LOG_ERROR, "svq3 memory allocation failed\n");
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user