diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-16 14:42:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-16 15:05:31 +0100 |
commit | 633ae5a2101cf6a4367f89041f6356ebc795f369 (patch) | |
tree | ce6be8a8bbddd54c36ec27745e2f5a0460c59400 /libavcodec/mpegvideo_enc.c | |
parent | 5be38f9421da8a50502e8021191fa180193765ec (diff) | |
download | ffmpeg-streaming-633ae5a2101cf6a4367f89041f6356ebc795f369.zip ffmpeg-streaming-633ae5a2101cf6a4367f89041f6356ebc795f369.tar.gz |
mjpegenc: fix 444 block count so it is below 10
Fixes Ticket1990
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 08dcf9e..aff12c6 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -751,6 +751,9 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) s->mjpeg_vsample[0] = s->mjpeg_hsample[0] = s->mjpeg_vsample[1] = s->mjpeg_hsample[1] = s->mjpeg_vsample[2] = s->mjpeg_hsample[2] = 1; + } else if (avctx->pix_fmt == AV_PIX_FMT_YUV444P || avctx->pix_fmt == AV_PIX_FMT_YUVJ444P) { + s->mjpeg_vsample[0] = s->mjpeg_vsample[1] = s->mjpeg_vsample[2] = 2; + s->mjpeg_hsample[0] = s->mjpeg_hsample[1] = s->mjpeg_hsample[2] = 1; } else { s->mjpeg_vsample[0] = 2; s->mjpeg_vsample[1] = 2 >> chroma_v_shift; |