Skip to content

Commit

Permalink
avcodec/mpeg12dec: remove inter block calls in IPU decoder
Browse files Browse the repository at this point in the history
This is intra only codec.
  • Loading branch information
richardpl committed Sep 25, 2020
1 parent c668294 commit f8f23a7
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions libavcodec/mpeg12dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3052,21 +3052,15 @@ static int ipu_decode_frame(AVCodecContext *avctx, void *data,

for (int n = 0; n < 6; n++) {
if (s->flags & 0x80) {
if (s->flags & 0x20)
ret = mpeg1_decode_block_inter(m, s->block[n], n);
else
ret = ff_mpeg1_decode_block_intra(&m->gb,
m->intra_matrix,
m->intra_scantable.permutated,
m->last_dc, s->block[n],
n, m->qscale);
ret = ff_mpeg1_decode_block_intra(&m->gb,
m->intra_matrix,
m->intra_scantable.permutated,
m->last_dc, s->block[n],
n, m->qscale);
if (ret >= 0)
m->block_last_index[n] = ret;
} else {
if (s->flags & 0x20)
ret = mpeg2_decode_block_intra(m, s->block[n], n);
else
ret = mpeg2_decode_block_non_intra(m, s->block[n], n);
ret = mpeg2_decode_block_intra(m, s->block[n], n);
}

if (ret < 0)
Expand Down

0 comments on commit f8f23a7

Please sign in to comment.