[FFmpeg-cvslog] r14763 - in trunk/libavcodec: mlp.h mlpdec.c
ramiro
subversion
Thu Aug 14 21:38:40 CEST 2008
Author: ramiro
Date: Thu Aug 14 21:38:39 2008
New Revision: 14763
Log:
mlp: Define End-of-Stream code in common header file and use it in decoder.
Modified:
trunk/libavcodec/mlp.h
trunk/libavcodec/mlpdec.c
Modified: trunk/libavcodec/mlp.h
==============================================================================
--- trunk/libavcodec/mlp.h (original)
+++ trunk/libavcodec/mlp.h Thu Aug 14 21:38:39 2008
@@ -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
Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c (original)
+++ trunk/libavcodec/mlpdec.c Thu Aug 14 21:38:39 2008
@@ -990,7 +990,7 @@ static int read_access_unit(AVCodecConte
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)
More information about the ffmpeg-cvslog
mailing list