Commit ac115fda authored by michaelni's avatar michaelni

grayscale only decoding


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@766 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f7b4d4bf
...@@ -2586,6 +2586,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, ...@@ -2586,6 +2586,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
height = (s->height+15)&~15; height = (s->height+15)&~15;
linesize= s->linesize; linesize= s->linesize;
} else { } else {
if(s->flags&CODEC_FLAG_GRAY) break;
width = (s->width/4+15)&~15; width = (s->width/4+15)&~15;
height = (s->height/4+15)&~15; height = (s->height/4+15)&~15;
linesize= s->uvlinesize; linesize= s->uvlinesize;
...@@ -2658,6 +2659,7 @@ static int svq1_decode_init(AVCodecContext *avctx) ...@@ -2658,6 +2659,7 @@ static int svq1_decode_init(AVCodecContext *avctx)
avctx->mbskip_table= s->mbskip_table; avctx->mbskip_table= s->mbskip_table;
avctx->pix_fmt = PIX_FMT_YUV410P; 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 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; if (MPV_common_init(s) < 0) return -1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment