Commit 2491f9ee authored by Anton Khirnov's avatar Anton Khirnov

h264: remove a pointless if()

!encoding is always true, we do not have a H.264 encoder
parent 68f930d2
...@@ -1796,7 +1796,6 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, ...@@ -1796,7 +1796,6 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h,
int qscale = p == 0 ? s->qscale : h->chroma_qp[p - 1]; int qscale = p == 0 ? s->qscale : h->chroma_qp[p - 1];
block_offset += 16 * p; block_offset += 16 * p;
if (IS_INTRA4x4(mb_type)) { if (IS_INTRA4x4(mb_type)) {
if (simple || !s->encoding) {
if (IS_8x8DCT(mb_type)) { if (IS_8x8DCT(mb_type)) {
if (transform_bypass) { if (transform_bypass) {
idct_dc_add = idct_dc_add =
...@@ -1870,7 +1869,6 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, ...@@ -1870,7 +1869,6 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h,
} }
} }
} }
}
} else { } else {
h->hpc.pred16x16[h->intra16x16_pred_mode](dest_y, linesize); h->hpc.pred16x16[h->intra16x16_pred_mode](dest_y, linesize);
if (is_h264) { if (is_h264) {
......
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