OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1811f1d
)
libilbc: use ff_alloc_packet2
author
Paul B Mahol
<onemda@gmail.com>
Wed, 6 Mar 2013 10:42:10 +0000
(10:42 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Wed, 6 Mar 2013 10:52:28 +0000
(10:52 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/libilbc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libilbc.c
b/libavcodec/libilbc.c
index
56cb51f
..
9805348
100644
(file)
--- a/
libavcodec/libilbc.c
+++ b/
libavcodec/libilbc.c
@@
-182,10
+182,8
@@
static int ilbc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
ILBCEncContext *s = avctx->priv_data;
int ret;
- if ((ret = ff_alloc_packet(avpkt, 50))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, 50)) < 0)
return ret;
- }
WebRtcIlbcfix_EncodeImpl((WebRtc_UWord16*) avpkt->data, (const WebRtc_Word16*) frame->data[0], &s->encoder);