[FFmpeg-cvslog] lavu/frame: use AVPALETTE_SIZE instead of 1024

Clément Bœsch git at videolan.org
Tue Dec 8 18:00:41 CET 2015


ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Tue Dec  8 17:50:40 2015 +0100| [503d8bf74a3874d8f038403882e60d410b88d287] | committer: Clément Bœsch

lavu/frame: use AVPALETTE_SIZE instead of 1024

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=503d8bf74a3874d8f038403882e60d410b88d287
---

 libavutil/frame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list