Revision 764ef400 libavformat/wav.c

View differences:

libavformat/wav.c
36 36
    { 0, 0 },
37 37
};
38 38

  
39
#ifdef CONFIG_ENCODERS
39 40
/* WAVEFORMATEX header */
40 41
/* returns the size or -1 on error */
41 42
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
......
106 107

  
107 108
    return hdrsize;
108 109
}
110
#endif //CONFIG_ENCODERS
109 111

  
110 112
/* We could be given one of the three possible structures here:
111 113
 * WAVEFORMAT, PCMWAVEFORMAT or WAVEFORMATEX. Each structure
......
160 162
    return id;
161 163
}
162 164

  
165
#ifdef CONFIG_ENCODERS
163 166
typedef struct {
164 167
    offset_t data;
165 168
} WAVContext;
......
217 220
    }
218 221
    return 0;
219 222
}
223
#endif //CONFIG_ENCODERS
220 224

  
221 225
/* return the size of the found tag */
222 226
/* XXX: > 2GB ? */
......
325 329
    wav_read_close,
326 330
};
327 331

  
332
#ifdef CONFIG_ENCODERS
328 333
static AVOutputFormat wav_oformat = {
329 334
    "wav",
330 335
    "wav format",
......
337 342
    wav_write_packet,
338 343
    wav_write_trailer,
339 344
};
345
#endif //CONFIG_ENCODERS
340 346

  
341 347
int wav_init(void)
342 348
{
343 349
    av_register_input_format(&wav_iformat);
350
#ifdef CONFIG_ENCODERS
344 351
    av_register_output_format(&wav_oformat);
352
#endif //CONFIG_ENCODERS
345 353
    return 0;
346 354
}

Also available in: Unified diff