"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/libilbc.c" between
libav-12.tar.gz and libav-12.1.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

libilbc.c  (libav-12):libilbc.c  (libav-12.1)
skipping to change at line 98 skipping to change at line 98
buf_size, s->decoder.no_of_bytes); buf_size, s->decoder.no_of_bytes);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
frame->nb_samples = s->decoder.blockl; frame->nb_samples = s->decoder.blockl;
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret; return ret;
} }
WebRtcIlbcfix_DecodeImpl((WebRtc_Word16*) frame->data[0], WebRtcIlbcfix_DecodeImpl((int16_t *) frame->data[0], (const uint16_t *) buf,
(const WebRtc_UWord16*) buf, &s->decoder, 1); &s->decoder, 1);
*got_frame_ptr = 1; *got_frame_ptr = 1;
return s->decoder.no_of_bytes; return s->decoder.no_of_bytes;
} }
AVCodec ff_libilbc_decoder = { AVCodec ff_libilbc_decoder = {
.name = "libilbc", .name = "libilbc",
.long_name = NULL_IF_CONFIG_SMALL("iLBC (Internet Low Bitrate Codec)"), .long_name = NULL_IF_CONFIG_SMALL("iLBC (Internet Low Bitrate Codec)"),
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
skipping to change at line 171 skipping to change at line 170
const AVFrame *frame, int *got_packet_ptr) const AVFrame *frame, int *got_packet_ptr)
{ {
ILBCEncContext *s = avctx->priv_data; ILBCEncContext *s = avctx->priv_data;
int ret; int ret;
if ((ret = ff_alloc_packet(avpkt, 50))) { if ((ret = ff_alloc_packet(avpkt, 50))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
return ret; return ret;
} }
WebRtcIlbcfix_EncodeImpl((WebRtc_UWord16*) avpkt->data, (const WebRtc_Word16 *) frame->data[0], &s->encoder); WebRtcIlbcfix_EncodeImpl((uint16_t *) avpkt->data, (const int16_t *) frame-> data[0], &s->encoder);
avpkt->size = s->encoder.no_of_bytes; avpkt->size = s->encoder.no_of_bytes;
*got_packet_ptr = 1; *got_packet_ptr = 1;
return 0; return 0;
} }
static const AVCodecDefault ilbc_encode_defaults[] = { static const AVCodecDefault ilbc_encode_defaults[] = {
{ "b", "0" }, { "b", "0" },
{ NULL } { NULL }
}; };
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS