# HG changeset patch # User michael # Date 1083964252 0 # Node ID fc54b7be8448bee3081f54144a55383615a7c223 # Parent 5be94affdb14cd4056381450fa846e2e870d2a7b color and 10l diff -r 5be94affdb14 -r fc54b7be8448 svq1.c --- a/svq1.c Fri May 07 20:30:52 2004 +0000 +++ b/svq1.c Fri May 07 21:10:52 2004 +0000 @@ -1653,7 +1653,7 @@ svq1_encode_plane(s, s->picture.data[0], s->frame_width, s->frame_height, s->picture.linesize[0]); // if (avctx->flags & CODEC_FLAG_GRAY) { -if (1) { + if (avctx->pix_fmt != PIX_FMT_YUV410P) { svq1_output_intra_constant_mean(s, s->c_block_width * 2, s->c_block_height * 2, 128); } else { @@ -1666,6 +1666,8 @@ // align_put_bits(&s->pb); while(put_bits_count(&s->pb) & 31) put_bits(&s->pb, 1, 0); + + flush_put_bits(&s->pb); return (put_bits_count(&s->pb) / 8); }