Browse Source

avcodec/libwebpenc: Use ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
7e9cd4e100
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libwebpenc.c

+ 1
- 1
libavcodec/libwebpenc.c View File

@@ -57,7 +57,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
goto end;
}

ret = ff_alloc_packet(pkt, mw.size);
ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size);
if (ret < 0)
goto end;
memcpy(pkt->data, mw.mem, mw.size);


Loading…
Cancel
Save