[FFmpeg-soc] [soc]: r5775 - mms/mmst.c
spyfeng
subversion at mplayerhq.hu
Sun Apr 25 08:10:48 CEST 2010
Author: spyfeng
Date: Sun Apr 25 08:10:48 2010
New Revision: 5775
Log:
add comments to explain the checking condition.
Modified:
mms/mmst.c
Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c Sun Apr 25 08:01:03 2010 (r5774)
+++ mms/mmst.c Sun Apr 25 08:10:48 2010 (r5775)
@@ -418,6 +418,9 @@ static int asf_header_parser(MMSContext
} else if (!memcmp(p, ff_asf_stream_header, sizeof(ff_asf_guid))) {
flags = AV_RL16(p + sizeof(ff_asf_guid)*3 + 24);
stream_id = flags & 0x7F;
+ //The second condition is for checking CS_PKT_STREAM_ID_REQUEST packet size,
+ //we can calcuate the packet size by stream_num.
+ //Please see function send_stream_selection_request().
if (mms->stream_num < MAX_STREAMS &&
46 + mms->stream_num * 6 < sizeof(mms->out_buffer)) {
mms->streams[mms->stream_num].id = stream_id;
More information about the FFmpeg-soc
mailing list