You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavu/frame: use AVPALETTE_SIZE instead of 1024
This commit is contained in:
@@ -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) {
|
if (desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
|
||||||
av_buffer_unref(&frame->buf[1]);
|
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])
|
if (!frame->buf[1])
|
||||||
goto fail;
|
goto fail;
|
||||||
frame->data[1] = frame->buf[1]->data;
|
frame->data[1] = frame->buf[1]->data;
|
||||||
|
Reference in New Issue
Block a user