diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-05-02 20:07:11 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-05-02 20:07:11 +0000 |
| commit | 2fa864b9e6d0b700a45f34feb039283134b9c5fb (patch) | |
| tree | 04416dc762db7c0cd5ff1f72cae40796d21f618b /apps/codecs/libasf | |
| parent | 9a74223f7df26090c3d4e91b00c78912e9d156f9 (diff) | |
| download | rockbox-2fa864b9e6d0b700a45f34feb039283134b9c5fb.zip rockbox-2fa864b9e6d0b700a45f34feb039283134b9c5fb.tar.gz rockbox-2fa864b9e6d0b700a45f34feb039283134b9c5fb.tar.bz2 rockbox-2fa864b9e6d0b700a45f34feb039283134b9c5fb.tar.xz | |
Remove unnecessary parameter (struct codec_api* ci) passed to libasf functions, and consequently remove the no-longer needed #ifdef in apps/codecs/libasf/asf.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libasf')
| -rw-r--r-- | apps/codecs/libasf/asf.c | 4 | ||||
| -rw-r--r-- | apps/codecs/libasf/asf.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/libasf/asf.c b/apps/codecs/libasf/asf.c index e3fffe6..1850321 100644 --- a/apps/codecs/libasf/asf.c +++ b/apps/codecs/libasf/asf.c @@ -49,7 +49,7 @@ static unsigned short get_short_le(void* buf) 0 : *(data) : get_short_le(data) : get_long_le(data)) int asf_read_packet(uint8_t** audiobuf, int* audiobufsize, int* packetlength, - asf_waveformatex_t* wfx, struct codec_api* ci) + asf_waveformatex_t* wfx) { uint8_t tmp8, packet_flags, packet_property; int stream_id; @@ -291,7 +291,7 @@ int asf_read_packet(uint8_t** audiobuf, int* audiobufsize, int* packetlength, } -int asf_get_timestamp(int *duration, struct codec_api* ci) +int asf_get_timestamp(int *duration) { uint8_t tmp8, packet_flags, packet_property; int ec_length, opaque_data, ec_length_type; diff --git a/apps/codecs/libasf/asf.h b/apps/codecs/libasf/asf.h index 2007e08..7ea57c5 100644 --- a/apps/codecs/libasf/asf.h +++ b/apps/codecs/libasf/asf.h @@ -36,11 +36,11 @@ struct asf_waveformatex_s { typedef struct asf_waveformatex_s asf_waveformatex_t; /* Define the packet-specific functions only for codecs not for metadata parsers */ -#ifdef __CODECLIB_H__ + int asf_read_packet(uint8_t** audiobuf, int* audiobufsize, int* packetlength, - asf_waveformatex_t* wfx, struct codec_api* ci); + asf_waveformatex_t* wfx); -int asf_get_timestamp(int *duration, struct codec_api* ci); -#endif +int asf_get_timestamp(int *duration); + #endif /* _ASF_H */ |