From 2fa864b9e6d0b700a45f34feb039283134b9c5fb Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Sun, 2 May 2010 20:07:11 +0000 Subject: 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 --- apps/codecs/libasf/asf.c | 4 ++-- apps/codecs/libasf/asf.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/codecs/libasf') diff --git a/apps/codecs/libasf/asf.c b/apps/codecs/libasf/asf.c index e3fffe6ee0..18503218b7 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 2007e08e86..7ea57c5f65 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 */ -- cgit v1.2.3