Browse Source

wmaenc: switch to ff_alloc_packet2().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
6cb29a1ab0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/wmaenc.c

+ 1
- 2
libavcodec/wmaenc.c View File

@@ -371,8 +371,7 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt,
}
}

if ((ret = ff_alloc_packet(avpkt, 2 * MAX_CODED_SUPERFRAME_SIZE))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
if ((ret = ff_alloc_packet2(avctx, avpkt, 2 * MAX_CODED_SUPERFRAME_SIZE))) {
return ret;
}



Loading…
Cancel
Save