You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/decode: stop trying to initialize palette values in avcodec_default_get_buffer2()
avpriv_set_systematic_pal2() is meant to fill fixed vales for formats that until recently were tagged as "pseudo pal". This is no longer the case, so this call is a no-op when used on real PAL formats. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1425,8 +1425,6 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
|
|||||||
pic->data[i] = NULL;
|
pic->data[i] = NULL;
|
||||||
pic->linesize[i] = 0;
|
pic->linesize[i] = 0;
|
||||||
}
|
}
|
||||||
if (desc->flags & AV_PIX_FMT_FLAG_PAL)
|
|
||||||
avpriv_set_systematic_pal2((uint32_t *)pic->data[1], pic->format);
|
|
||||||
|
|
||||||
if (s->debug & FF_DEBUG_BUFFERS)
|
if (s->debug & FF_DEBUG_BUFFERS)
|
||||||
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p\n", pic);
|
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p\n", pic);
|
||||||
|
Reference in New Issue
Block a user