aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-07 21:10:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-07 21:10:52 +0000
commit14aa9da3d63fae1088fbf070fe6fa4c89f56d8b8 (patch)
treef7c79d464cd8284d978b5528d283ed095d583a72
parentfa2ae822063a8e41ef3c0713a6872899153c1027 (diff)
downloadffmpeg-14aa9da3d63fae1088fbf070fe6fa4c89f56d8b8.tar.gz
color and 10l
Originally committed as revision 3116 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/svq1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 48b25ec476..6d7fc104db 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1653,7 +1653,7 @@ static int svq1_encode_frame(AVCodecContext *avctx, unsigned char *buf,
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 @@ if (1) {
// 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);
}