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:
83fc734
)
libschroedingerenc: switch to ff_alloc_packet2().
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 14:00:47 +0000
(15:00 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Mar 2012 18:03:20 +0000
(19:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libschroedingerenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libschroedingerenc.c
b/libavcodec/libschroedingerenc.c
index
02ffac7
..
3f3bb32
100644
(file)
--- a/
libavcodec/libschroedingerenc.c
+++ b/
libavcodec/libschroedingerenc.c
@@
-381,8
+381,7
@@
static int libschroedinger_encode_frame(AVCodecContext *avccontext, AVPacket *pk
pkt_size = p_frame_output->size;
if (last_frame_in_sequence && p_schro_params->enc_buf_size > 0)
pkt_size += p_schro_params->enc_buf_size;
- if ((ret = ff_alloc_packet(pkt, pkt_size)) < 0) {
- av_log(avccontext, AV_LOG_ERROR, "Error getting output packet of size %d.\n", pkt_size);
+ if ((ret = ff_alloc_packet2(avccontext, pkt, pkt_size)) < 0) {
goto error;
}