aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-18 22:56:50 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-18 22:56:50 +0000
commit5bd12d1277171f75c1bcd14ab795742171f196af (patch)
tree7b2adc73871f7654ae3a0ed48e14b83c97d3ab7b /libavcodec
parent44f27b3a86d2c8847e4fd5a74d9d157c579725cf (diff)
downloadffmpeg-5bd12d1277171f75c1bcd14ab795742171f196af.tar.gz
improved mpeg1/2 decoding speed
Originally committed as revision 517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 733646f801..f2edb25262 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -855,6 +855,8 @@ static int mpeg_decode_mb(MpegEncContext *s,
if (cbp & (1 << (5 - i))) {
if (mpeg2_decode_block_intra(s, block[i], i) < 0)
return -1;
+ } else {
+ s->block_last_index[i] = -1;
}
}
} else {
@@ -862,6 +864,8 @@ static int mpeg_decode_mb(MpegEncContext *s,
if (cbp & (1 << (5 - i))) {
if (mpeg2_decode_block_non_intra(s, block[i], i) < 0)
return -1;
+ } else {
+ s->block_last_index[i] = -1;
}
}
}
@@ -870,6 +874,8 @@ static int mpeg_decode_mb(MpegEncContext *s,
if (cbp & (1 << (5 - i))) {
if (mpeg1_decode_block(s, block[i], i) < 0)
return -1;
+ } else {
+ s->block_last_index[i] = -1;
}
}
}