Revision 933e8667

View differences:

libavcodec/avcodec.h
3228 3228
/**
3229 3229
 * Decodes the audio frame of size avpkt->size from avpkt->data into samples.
3230 3230
 * Some decoders may support multiple frames in a single AVPacket, such
3231
 * decoders would then just decode the first frame.
3231
 * decoders would then just decode the first frame. In this case,
3232
 * avcodec_decode_audio3 has to be called again with an AVPacket that contains
3233
 * the remaining data in order to decode the second frame etc.
3232 3234
 * If no frame
3233
 * could be decompressed, frame_size_ptr is zero. Otherwise, it is the
3235
 * could be outputted, frame_size_ptr is zero. Otherwise, it is the
3234 3236
 * decompressed frame size in bytes.
3235 3237
 *
3236 3238
 * @warning You must set frame_size_ptr to the allocated size of the
......
3260 3262
 *            data and size, some decoders might in addition need other fields.
3261 3263
 *            All decoders are designed to use the least fields possible though.
3262 3264
 * @return On error a negative value is returned, otherwise the number of bytes
3263
 * used or zero if no frame could be decompressed.
3265
 * used or zero if no frame data was decompressed (used) from the input AVPacket.
3264 3266
 */
3265 3267
int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
3266 3268
                         int *frame_size_ptr,

Also available in: Unified diff