blob: f16aaebc74184384e9b938e8b38bd371fc1612f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff_plain/e664f4465ab0f76adcf2452e85741ee468f507b7..36b402f80d0adc6b0687e014e3f51a00b72335eb:/libavcodec/mdec.c
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index 44b12471a9..c4904216b8 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -68,7 +68,7 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n)
const int qscale = a->qscale;
/* DC coefficient */
- if (a->version == 2) {
+ if (a->version <= 2) {
block[0] = 2 * get_sbits(&a->gb, 10) + 1024;
} else {
component = (n <= 3 ? 0 : n - 4 + 1);
|