Commit e96a4b0f authored by ramiro's avatar ramiro

mlp: Define End-of-Stream code in common header file and use it in decoder.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14763 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 335a316a
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
*/ */
#define MAX_FILTER_ORDER 8 #define MAX_FILTER_ORDER 8
/** Code that signals end of a stream. */
#define END_OF_STREAM 0xd234d234
#define FIR 0 #define FIR 0
#define IIR 1 #define IIR 1
......
...@@ -990,7 +990,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size, ...@@ -990,7 +990,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
skip_bits(&gb, (-get_bits_count(&gb)) & 15); skip_bits(&gb, (-get_bits_count(&gb)) & 15);
if (substream_data_len[substr] * 8 - get_bits_count(&gb) >= 32 && if (substream_data_len[substr] * 8 - get_bits_count(&gb) >= 32 &&
(show_bits_long(&gb, 32) == 0xd234d234 || (show_bits_long(&gb, 32) == END_OF_STREAM ||
show_bits_long(&gb, 20) == 0xd234e)) { show_bits_long(&gb, 20) == 0xd234e)) {
skip_bits(&gb, 18); skip_bits(&gb, 18);
if (substr == m->max_decoded_substream) if (substr == m->max_decoded_substream)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment