Mercurial > libavcodec.hg
comparison mimic.c @ 6668:28af02d712cf libavcodec
Fix regression introduced by r12929.
num_coeffs is just one byte.
It would make no sense for num_coeffs to be as high as 2^32.
author | ramiro |
---|---|
date | Tue, 22 Apr 2008 23:24:47 +0000 |
parents | 4a5c7112e35c |
children | 0b8ef15fa20e |
comparison
equal
deleted
inserted
replaced
6667:4a5c7112e35c | 6668:28af02d712cf |
---|---|
291 quality = bytestream_get_le16(&buf); | 291 quality = bytestream_get_le16(&buf); |
292 width = bytestream_get_le16(&buf); | 292 width = bytestream_get_le16(&buf); |
293 height = bytestream_get_le16(&buf); | 293 height = bytestream_get_le16(&buf); |
294 buf += 4; /* some constant */ | 294 buf += 4; /* some constant */ |
295 is_pframe = bytestream_get_le32(&buf); | 295 is_pframe = bytestream_get_le32(&buf); |
296 num_coeffs = bytestream_get_le32(&buf); | 296 num_coeffs = bytestream_get_byte(&buf); |
297 buf += 3; /* some constant */ | |
297 | 298 |
298 if(!ctx->avctx) { | 299 if(!ctx->avctx) { |
299 int i; | 300 int i; |
300 | 301 |
301 if(!(width == 160 && height == 120) && | 302 if(!(width == 160 && height == 120) && |