# HG changeset patch # User michaelni # Date 1026814740 0 # Node ID 81227ab6267846b9b66c6a7ab687ea2f9ba45c58 # Parent 468d4800dbf1df092413a91a6c4a9c546c79a2ae grayscale only decoding diff -r 468d4800dbf1 -r 81227ab62678 svq1.c --- a/svq1.c Tue Jul 16 01:24:02 2002 +0000 +++ b/svq1.c Tue Jul 16 10:19:00 2002 +0000 @@ -2586,6 +2586,7 @@ height = (s->height+15)&~15; linesize= s->linesize; } else { + if(s->flags&CODEC_FLAG_GRAY) break; width = (s->width/4+15)&~15; height = (s->height/4+15)&~15; linesize= s->uvlinesize; @@ -2658,6 +2659,7 @@ avctx->mbskip_table= s->mbskip_table; avctx->pix_fmt = PIX_FMT_YUV410P; avctx->has_b_frames= s->has_b_frames=1; // not true, but DP frames and these behave like unidirectional b frames + s->flags= avctx->flags; if (MPV_common_init(s) < 0) return -1; return 0; }