git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e4413c
)
g726enc: switch to ff_alloc_packet2()
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 03:24:16 +0000
(
04:24
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 18:03:19 +0000
(19:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/g726.c
patch
|
blob
|
history
diff --git
a/libavcodec/g726.c
b/libavcodec/g726.c
index
4489411
..
6841b11
100644
(file)
--- a/
libavcodec/g726.c
+++ b/
libavcodec/g726.c
@@
-361,8
+361,7
@@
static int g726_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
int i, ret, out_size;
out_size = (frame->nb_samples * c->code_size + 7) / 8;
- if ((ret = ff_alloc_packet(avpkt, out_size))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, out_size))) {
return ret;
}
init_put_bits(&pb, avpkt->data, avpkt->size);