[FFmpeg-soc] [soc]: r5748 - mms/mmst.c
spyfeng
subversion at mplayerhq.hu
Sat Apr 10 07:07:22 CEST 2010
Author: spyfeng
Date: Sat Apr 10 07:07:22 2010
New Revision: 5748
Log:
modify the way for reading one byte value from ByteIOContext.
Modified:
mms/mmst.c
Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c Sat Apr 10 06:54:43 2010 (r5747)
+++ mms/mmst.c Sat Apr 10 07:07:22 2010 (r5748)
@@ -225,7 +225,8 @@ static void handle_packet_stream_changin
init_put_byte(&pkt, mms->incoming_buffer+40,
mms->incoming_buffer_length-40, 0, NULL, NULL, NULL, NULL);
get_le32(&pkt); // prefix 1
- mms->header_packet_id= (get_le32(&pkt) & 0xff); // prefix 2
+ get_le24(&pkt); // prefix 2
+ mms->header_packet_id= get_byte(&pkt);
dprintf(NULL, "Changed header prefix to 0x%x", mms->header_packet_id);
}
More information about the FFmpeg-soc
mailing list