Browse Source

mjpegenc: disable huffman coding with AMV

Isn't supported.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
(cherry picked from commit 7f9b492d54)
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
tags/n3.3
Rostislav Pehlivanov 9 years ago
parent
commit
7034009f62
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/mpegvideo_enc.c

+ 3
- 0
libavcodec/mpegvideo_enc.c View File

@@ -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);


Loading…
Cancel
Save