1 Jul 2008 03:36
r14044 - in trunk/libavcodec: mlp_parser.c mlp_parser.h
ramiro <subversion <at> mplayerhq.hu>
2008-07-01 01:36:17 GMT
2008-07-01 01:36:17 GMT
Author: ramiro
Date: Tue Jul 1 03:36:16 2008
New Revision: 14044
Log:
Make ff_mlp_read_major_sync() take a GetBitContext instead of buffers.
Modified:
trunk/libavcodec/mlp_parser.c
trunk/libavcodec/mlp_parser.h
Modified: trunk/libavcodec/mlp_parser.c
==============================================================================
--- trunk/libavcodec/mlp_parser.c (original)
+++ trunk/libavcodec/mlp_parser.c Tue Jul 1 03:36:16 2008
<at> <at> -88,74 +88,73 <at> <at> static uint16_t mlp_checksum16(const uin
/** Read a major sync info header - contains high level information about
* the stream - sample rate, channel arrangement etc. Most of this
* information is not actually necessary for decoding, only for playback.
+ * gb must be a freshly initialized GetBitContext with no bits read.
*/
-int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, const uint8_t *buf,
- unsigned int buf_size)
+int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, GetBitContext *gb)
{
- GetBitContext gb;
int ratebits;
uint16_t checksum;
(Continue reading)
RSS Feed