diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-25 06:46:30 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-25 06:46:30 +0000 |
commit | 1164c516dbc3493467e2a5af66b6d0502fa80b3d (patch) | |
tree | f5ae350d8697dbea2e7aa0391878867a799b348a /libmpcodecs | |
parent | 23153505fffc912b217c04403ce8f4aa09ec4b22 (diff) |
fixed wrong function pointers definitions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15259 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ae.h | 15 | ||||
-rw-r--r-- | libmpcodecs/ae_pcm.c | 4 |
2 files changed, 10 insertions, 9 deletions
diff --git a/libmpcodecs/ae.h b/libmpcodecs/ae.h index bcac7a0dee..d1da14073d 100644 --- a/libmpcodecs/ae.h +++ b/libmpcodecs/ae.h @@ -8,6 +8,7 @@ #define ACODEC_NULL 3 #define ACODEC_LAVC 4 #define ACODEC_TOOLAME 5 +#define ACODEC_FAAC 6 #define AE_NEEDS_COMPRESSED_INPUT 1 @@ -19,7 +20,7 @@ typedef struct { int audio_preload; } audio_encoding_params_t; -typedef struct { +typedef struct audio_encoder_s { int codec; int flags; muxer_stream_t *stream; @@ -31,12 +32,12 @@ typedef struct { int decode_buffer_size; int decode_buffer_len; void *priv; - int (*bind)(void*, muxer_stream_t*); - int (*get_frame_size)(void*); - int (*set_decoded_len)(void *encoder, int len); - int (*encode)(void *encoder, uint8_t *dest, void *src, int nsamples, int max_size); - int (*fixup)(); - int (*close)(); + int (*bind)(struct audio_encoder_s*, muxer_stream_t*); + int (*get_frame_size)(struct audio_encoder_s*); + int (*set_decoded_len)(struct audio_encoder_s *encoder, int len); + int (*encode)(struct audio_encoder_s *encoder, uint8_t *dest, void *src, int nsamples, int max_size); + void (*fixup)(struct audio_encoder_s *encoder); + int (*close)(struct audio_encoder_s *encoder); } audio_encoder_t; audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params_t *params); diff --git a/libmpcodecs/ae_pcm.c b/libmpcodecs/ae_pcm.c index 1e78bbfb09..a6d8fab2ed 100644 --- a/libmpcodecs/ae_pcm.c +++ b/libmpcodecs/ae_pcm.c @@ -41,9 +41,9 @@ static int encode_pcm(audio_encoder_t *encoder, uint8_t *dest, void *src, int ns return max_size; } -static void set_decoded_len(audio_encoder_t *encoder, int len) +static int set_decoded_len(audio_encoder_t *encoder, int len) { - return; + return len; } static int close_pcm(audio_encoder_t *encoder) |