summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-10-20 06:43:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-20 18:00:13 +0200
commit79393a8363d6bb9920754247df00f1b5259e6efd (patch)
treea8991d78db0652fc3b004ade2f3c3a0365f9fda3 /libavfilter/video.c
parent2c5b92fe90463402be6bf611ef40195f86f434fd (diff)
downloadffmpeg-79393a8363d6bb9920754247df00f1b5259e6efd.tar.gz
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c2
1 files changed, 1 insertions, 1 deletions
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