Commit 7f9b492d authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

mjpegenc: disable huffman coding with AMV

Isn't supported.
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 2c9be388
......@@ -399,6 +399,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
return AVERROR(EINVAL);
}
if (s->huffman && avctx->codec_id == AV_CODEC_ID_AMV)
s->huffman = 0;
if (s->intra_dc_precision > (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO ? 3 : 0)) {
av_log(avctx, AV_LOG_ERROR, "intra dc precision too large\n");
return AVERROR(EINVAL);
......
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