summaryrefslogtreecommitdiffstats
path: root/libavutil/frame.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-12-08 17:50:40 +0100
committerClément Bœsch <clement@stupeflix.com>2015-12-08 17:50:40 +0100
commit503d8bf74a3874d8f038403882e60d410b88d287 (patch)
tree00c2d1379fd9b8ac8ba18b354a05316f2023843f /libavutil/frame.c
parent4c5136a48ba8beb7737a0b67d4d4f64add1263a9 (diff)
downloadffmpeg-streaming-503d8bf74a3874d8f038403882e60d410b88d287.zip
ffmpeg-streaming-503d8bf74a3874d8f038403882e60d410b88d287.tar.gz
lavu/frame: use AVPALETTE_SIZE instead of 1024
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r--libavutil/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 4297e07..f2097e9 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -198,7 +198,7 @@ static int get_video_buffer(AVFrame *frame, int align)
}
if (desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
av_buffer_unref(&frame->buf[1]);
- frame->buf[1] = av_buffer_alloc(1024);
+ frame->buf[1] = av_buffer_alloc(AVPALETTE_SIZE);
if (!frame->buf[1])
goto fail;
frame->data[1] = frame->buf[1]->data;
OpenPOWER on IntegriCloud