You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avcodec/mpeg12dec: remove inter block calls in IPU decoder
This is intra only codec.
This commit is contained in:
@ -3052,21 +3052,15 @@ static int ipu_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
|
|
||||||
for (int n = 0; n < 6; n++) {
|
for (int n = 0; n < 6; n++) {
|
||||||
if (s->flags & 0x80) {
|
if (s->flags & 0x80) {
|
||||||
if (s->flags & 0x20)
|
ret = ff_mpeg1_decode_block_intra(&m->gb,
|
||||||
ret = mpeg1_decode_block_inter(m, s->block[n], n);
|
m->intra_matrix,
|
||||||
else
|
m->intra_scantable.permutated,
|
||||||
ret = ff_mpeg1_decode_block_intra(&m->gb,
|
m->last_dc, s->block[n],
|
||||||
m->intra_matrix,
|
n, m->qscale);
|
||||||
m->intra_scantable.permutated,
|
|
||||||
m->last_dc, s->block[n],
|
|
||||||
n, m->qscale);
|
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
m->block_last_index[n] = ret;
|
m->block_last_index[n] = ret;
|
||||||
} else {
|
} else {
|
||||||
if (s->flags & 0x20)
|
ret = mpeg2_decode_block_intra(m, s->block[n], n);
|
||||||
ret = mpeg2_decode_block_intra(m, s->block[n], n);
|
|
||||||
else
|
|
||||||
ret = mpeg2_decode_block_non_intra(m, s->block[n], n);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user