Mercurial > libavcodec.hg
comparison mlpdec.c @ 7575:d73cd240d68c libavcodec
mlp: Define End-of-Stream code in common header file and use it in decoder.
author | ramiro |
---|---|
date | Thu, 14 Aug 2008 19:38:39 +0000 |
parents | d112b4655bbd |
children | 82dbfe8d2e0b |
comparison
equal
deleted
inserted
replaced
7574:27ee0ceab150 | 7575:d73cd240d68c |
---|---|
988 } while ((get_bits_count(&gb) < substream_data_len[substr] * 8) | 988 } while ((get_bits_count(&gb) < substream_data_len[substr] * 8) |
989 && get_bits1(&gb) == 0); | 989 && get_bits1(&gb) == 0); |
990 | 990 |
991 skip_bits(&gb, (-get_bits_count(&gb)) & 15); | 991 skip_bits(&gb, (-get_bits_count(&gb)) & 15); |
992 if (substream_data_len[substr] * 8 - get_bits_count(&gb) >= 32 && | 992 if (substream_data_len[substr] * 8 - get_bits_count(&gb) >= 32 && |
993 (show_bits_long(&gb, 32) == 0xd234d234 || | 993 (show_bits_long(&gb, 32) == END_OF_STREAM || |
994 show_bits_long(&gb, 20) == 0xd234e)) { | 994 show_bits_long(&gb, 20) == 0xd234e)) { |
995 skip_bits(&gb, 18); | 995 skip_bits(&gb, 18); |
996 if (substr == m->max_decoded_substream) | 996 if (substr == m->max_decoded_substream) |
997 av_log(m->avctx, AV_LOG_INFO, "End of stream indicated.\n"); | 997 av_log(m->avctx, AV_LOG_INFO, "End of stream indicated.\n"); |
998 | 998 |