summaryrefslogtreecommitdiffstats
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-02 18:11:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-02 19:59:10 +0200
commit95666b22989b9b9f91a27da01b2bdbf4ee8022d3 (patch)
treecd3927271edcc285c1aa041b2b9b695cc65d4996 /libavcodec/imgconvert.c
parent2490996f38e02da28397631b11c6b3db8ba25934 (diff)
downloadffmpeg-streaming-95666b22989b9b9f91a27da01b2bdbf4ee8022d3.zip
ffmpeg-streaming-95666b22989b9b9f91a27da01b2bdbf4ee8022d3.tar.gz
avcodec/imgconvert/get_color_type: fix type for PAL8
Fixes Ticket3008 Fate changes as PAL8 gets used instead of BGR8 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index d9dc55d..ee58cfb 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -71,6 +71,9 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int
}
static int get_color_type(const AVPixFmtDescriptor *desc) {
+ if (desc->flags & AV_PIX_FMT_FLAG_PAL)
+ return FF_COLOR_RGB;
+
if(desc->nb_components == 1 || desc->nb_components == 2)
return FF_COLOR_GRAY;
OpenPOWER on IntegriCloud