diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-08-13 00:55:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-08-13 00:55:39 +0000 |
commit | 70bbeb6fbfc452415384d8f136e59be63fe1e248 (patch) | |
tree | 58a622d885252b73d9425555087b33f1965a143f /libavcodec/4xm.c | |
parent | a0d30cbcbf5f8917c42644d521844145e82b129d (diff) | |
download | ffmpeg-70bbeb6fbfc452415384d8f136e59be63fe1e248.tar.gz |
use version instead of some random 32bit value to switch between 16 and
32bit versions (this is more reliable, the old code failed on some files)
Originally committed as revision 10094 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index e2798587af..aca86181ba 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -340,7 +340,7 @@ static int decode_p_frame(FourXContext *f, uint8_t *buf, int length){ const int stride= f->current_picture.linesize[0]>>1; unsigned int bitstream_size, bytestream_size, wordstream_size, extra; - if(!get32(buf-4)){ + if(f->version){ extra=20; bitstream_size= get32(buf+8); wordstream_size= get32(buf+12); |