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:
ca6a344
)
dnxhdenc: switch to ff_alloc_packet2()
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 03:21:57 +0000
(
04:21
+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/dnxhdenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/dnxhdenc.c
b/libavcodec/dnxhdenc.c
index
ce89801
..
22640eb
100644
(file)
--- a/
libavcodec/dnxhdenc.c
+++ b/
libavcodec/dnxhdenc.c
@@
-910,8
+910,7
@@
static int dnxhd_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
int offset, i, ret;
uint8_t *buf;
- if ((ret = ff_alloc_packet(pkt, ctx->cid_table->frame_size)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compress picture\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, ctx->cid_table->frame_size)) < 0) {
return ret;
}
buf = pkt->data;