Browse Source

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

Originally committed as revision 14763 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ramiro Polla 17 years ago
parent
commit
1e8bd10c57
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      libavcodec/mlp.h
  2. +1
    -1
      libavcodec/mlpdec.c

+ 3
- 0
libavcodec/mlp.h View File

@@ -56,6 +56,9 @@
*/
#define MAX_FILTER_ORDER 8

/** Code that signals end of a stream. */
#define END_OF_STREAM 0xd234d234

#define FIR 0
#define IIR 1



+ 1
- 1
libavcodec/mlpdec.c View File

@@ -990,7 +990,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,

skip_bits(&gb, (-get_bits_count(&gb)) & 15);
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)) {
skip_bits(&gb, 18);
if (substr == m->max_decoded_substream)


Loading…
Cancel
Save