Mercurial > libavcodec.hg
comparison shorten.c @ 8612:b20c590170cc libavcodec
remove ff_get_fourcc() and use AV_RL32() instead
author | aurel |
---|---|
date | Sat, 17 Jan 2009 12:21:01 +0000 |
parents | 4525dcd81357 |
children | 275e2256bb11 |
comparison
equal
deleted
inserted
replaced
8611:a637db9f59b1 | 8612:b20c590170cc |
---|---|
303 skip_bits(&s->gb, s->bitindex); | 303 skip_bits(&s->gb, s->bitindex); |
304 if (!s->blocksize) | 304 if (!s->blocksize) |
305 { | 305 { |
306 int maxnlpc = 0; | 306 int maxnlpc = 0; |
307 /* shorten signature */ | 307 /* shorten signature */ |
308 if (get_bits_long(&s->gb, 32) != bswap_32(ff_get_fourcc("ajkg"))) { | 308 if (get_bits_long(&s->gb, 32) != bswap_32(AV_RL32("ajkg"))) { |
309 av_log(s->avctx, AV_LOG_ERROR, "missing shorten magic 'ajkg'\n"); | 309 av_log(s->avctx, AV_LOG_ERROR, "missing shorten magic 'ajkg'\n"); |
310 return -1; | 310 return -1; |
311 } | 311 } |
312 | 312 |
313 s->lpcqoffset = 0; | 313 s->lpcqoffset = 0; |