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:
a8aba06
)
adxenc: switch to ff_alloc_packet2()
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 03:20:20 +0000
(
04:20
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 18:03:18 +0000
(19:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/adxenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/adxenc.c
b/libavcodec/adxenc.c
index
5ab53dd
..
d82cae3
100644
(file)
--- a/
libavcodec/adxenc.c
+++ b/
libavcodec/adxenc.c
@@
-139,8
+139,7
@@
static int adx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
int ch, out_size, ret;
out_size = BLOCK_SIZE * avctx->channels + !c->header_parsed * HEADER_SIZE;
- if ((ret = ff_alloc_packet(avpkt, out_size)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, out_size)) < 0) {
return ret;
}
dst = avpkt->data;