Browse Source

roqaudioenc: switch to ff_alloc_packet2()

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

+ 1
- 2
libavcodec/roqaudioenc.c View File

@@ -171,8 +171,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
else
data_size = avctx->channels * avctx->frame_size;

if ((ret = ff_alloc_packet(avpkt, ROQ_HEADER_SIZE + data_size))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
if ((ret = ff_alloc_packet2(avctx, avpkt, ROQ_HEADER_SIZE + data_size))) {
return ret;
}
out = avpkt->data;


Loading…
Cancel
Save