[FFmpeg-soc] [soc]: r5640 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Tue Mar 9 17:31:47 CET 2010


Author: spyfeng
Date: Tue Mar  9 17:31:47 2010
New Revision: 5640

Log:
get the data without checking the asf_packet_len which should be got from asf header.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Mon Mar  8 18:39:47 2010	(r5639)
+++ mms/mmst.c	Tue Mar  9 17:31:47 2010	(r5640)
@@ -1126,11 +1126,11 @@ static int read_mms_packet(MMSContext *m
 //                fprintf(stderr, "Type: 0x%x\n", packet_type);
                 switch (packet_type) {
                 case SC_PACKET_ASF_MEDIA_TYPE:
-                    if(mms->media_packet_buffer_length>mms->asf_packet_len) {
+//                   if(mms->media_packet_buffer_length>mms->asf_packet_len) {
                         fprintf(stderr, "Incoming packet larger than the asf packet size stated (%d>%d)\n", mms->media_packet_buffer_length, mms->asf_packet_len);
-                        result= AVERROR_IO;
-                        break;
-                    }
+//                        result= AVERROR_IO;
+//                        break;
+//                    }
 
                     // copy the data to the packet buffer...
                     size_to_copy= FFMIN(buf_size, mms->media_packet_buffer_length);


More information about the FFmpeg-soc mailing list