[FFmpeg-soc] [soc]: r5887 - in mms: mms.c mms.h
spyfeng
subversion at mplayerhq.hu
Mon Aug 2 18:06:03 CEST 2010
Author: spyfeng
Date: Mon Aug 2 18:06:03 2010
New Revision: 5887
Log:
rename buf_size to size for consistent with ff_mms_read_header().
Modified:
mms/mms.c
mms/mms.h
Modified: mms/mms.c
==============================================================================
--- mms/mms.c Mon Aug 2 18:03:06 2010 (r5886)
+++ mms/mms.c Mon Aug 2 18:06:03 2010 (r5887)
@@ -39,10 +39,10 @@ int ff_mms_read_header(MMSContext *mms,
return size_to_copy;
}
-int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int buf_size)
+int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size)
{
int read_size;
- read_size = FFMIN(buf_size, mms->remaining_in_len);
+ read_size = FFMIN(size, mms->remaining_in_len);
memcpy(buf, mms->read_in_ptr, read_size);
mms->remaining_in_len -= read_size;
mms->read_in_ptr += read_size;
Modified: mms/mms.h
==============================================================================
--- mms/mms.h Mon Aug 2 18:03:06 2010 (r5886)
+++ mms/mms.h Mon Aug 2 18:06:03 2010 (r5887)
@@ -57,6 +57,6 @@ typedef struct {
} MMSContext;
int ff_mms_asf_header_parser(MMSContext * mms);
-int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int buf_size);
+int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size);
int ff_mms_read_header(MMSContext * mms, uint8_t * buf, const int size);
#endif
More information about the FFmpeg-soc
mailing list