From 79393a8363d6bb9920754247df00f1b5259e6efd Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 20 Oct 2012 06:43:48 +0200 Subject: Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get Signed-off-by: Michael Niedermayer --- libavfilter/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/video.c') diff --git a/libavfilter/video.c b/libavfilter/video.c index 7a0cce9814..4d8804ba10 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -286,7 +286,7 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) avfilter_copy_buffer_ref_props(link->cur_buf, link->src_buf); /* copy palette if required */ - if (av_pix_fmt_descriptors[link->format].flags & PIX_FMT_PAL) + if (av_pix_fmt_desc_get(link->format)->flags & PIX_FMT_PAL) memcpy(link->cur_buf->data[1], link->src_buf-> data[1], AVPALETTE_SIZE); } else -- cgit v1.2.3