Mercurial > libavcodec.hg
comparison smacker.c @ 4364:05e932ddaaa9 libavcodec
rename BE/LE_8/16/32 to AV_RL/B_8/16/32
author | alex |
---|---|
date | Fri, 19 Jan 2007 22:12:59 +0000 |
parents | d6f83e2f8804 |
children | 86a2dfcc5eef |
comparison
equal
deleted
inserted
replaced
4363:9b7662fa4905 | 4364:05e932ddaaa9 |
---|---|
275 | 275 |
276 static int decode_header_trees(SmackVContext *smk) { | 276 static int decode_header_trees(SmackVContext *smk) { |
277 GetBitContext gb; | 277 GetBitContext gb; |
278 int mmap_size, mclr_size, full_size, type_size; | 278 int mmap_size, mclr_size, full_size, type_size; |
279 | 279 |
280 mmap_size = LE_32(smk->avctx->extradata); | 280 mmap_size = AV_RL32(smk->avctx->extradata); |
281 mclr_size = LE_32(smk->avctx->extradata + 4); | 281 mclr_size = AV_RL32(smk->avctx->extradata + 4); |
282 full_size = LE_32(smk->avctx->extradata + 8); | 282 full_size = AV_RL32(smk->avctx->extradata + 8); |
283 type_size = LE_32(smk->avctx->extradata + 12); | 283 type_size = AV_RL32(smk->avctx->extradata + 12); |
284 | 284 |
285 init_get_bits(&gb, smk->avctx->extradata + 16, (smk->avctx->extradata_size - 16) * 8); | 285 init_get_bits(&gb, smk->avctx->extradata + 16, (smk->avctx->extradata_size - 16) * 8); |
286 | 286 |
287 if(!get_bits1(&gb)) { | 287 if(!get_bits1(&gb)) { |
288 av_log(smk->avctx, AV_LOG_INFO, "Skipping MMAP tree\n"); | 288 av_log(smk->avctx, AV_LOG_INFO, "Skipping MMAP tree\n"); |
582 int i, res; | 582 int i, res; |
583 int unp_size; | 583 int unp_size; |
584 int bits, stereo; | 584 int bits, stereo; |
585 int pred[2] = {0, 0}; | 585 int pred[2] = {0, 0}; |
586 | 586 |
587 unp_size = LE_32(buf); | 587 unp_size = AV_RL32(buf); |
588 | 588 |
589 init_get_bits(&gb, buf + 4, (buf_size - 4) * 8); | 589 init_get_bits(&gb, buf + 4, (buf_size - 4) * 8); |
590 | 590 |
591 if(!get_bits1(&gb)){ | 591 if(!get_bits1(&gb)){ |
592 av_log(avctx, AV_LOG_INFO, "Sound: no data\n"); | 592 av_log(avctx, AV_LOG_INFO, "Sound: no data\n"); |