Browse Source

ra144enc: switch to ff_alloc_packet2()

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

+ 1
- 2
libavcodec/ra144enc.c View File

@@ -458,8 +458,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if (ractx->last_frame)
return 0;

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



Loading…
Cancel
Save