Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-22 18:13:15 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-06-22 19:23:09 +0400
commit1e7943c3151d7c27416c88249900af56919bc1db (patch)
treec496c530c0b6e1e16f4c1b4e70b4c833ef3d843c /libavcodec/snowdec.c
parentfba18ef8ccdbe62d1fa08bebcacbf2158c60f4c6 (diff)
snow: yuv410 support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowdec.c')
-rw-r--r--libavcodec/snowdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 4a34cf8d14..405166c5fe 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -295,6 +295,8 @@ static int decode_header(SnowContext *s){
s->avctx->pix_fmt= PIX_FMT_YUV420P;
}else if(s->chroma_h_shift == 0 && s->chroma_v_shift==0){
s->avctx->pix_fmt= PIX_FMT_YUV444P;
+ }else if(s->chroma_h_shift == 2 && s->chroma_v_shift==2){
+ s->avctx->pix_fmt= PIX_FMT_YUV410P;
} else {
av_log(s, AV_LOG_ERROR, "unsupported color subsample mode %d %d\n", s->chroma_h_shift, s->chroma_v_shift);
s->chroma_h_shift = s->chroma_v_shift = 1;