[FFmpeg-devel] [PATCH 2/3] mjpegenc: disable huffman coding with AMV
Rostislav Pehlivanov
atomnuker at gmail.com
Mon Apr 3 23:13:29 EEST 2017
Isn't supported.
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
---
libavcodec/mpegvideo_enc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 71a858fc72..8cc964be23 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -399,6 +399,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
return AVERROR(EINVAL);
}
+ if (s->huffman && avctx->codec_id == AV_CODEC_ID_AMV) {
+ av_log(avctx, AV_LOG_WARNING, "AMV doesn't support optimized huffman tables, disabling\n");
+ 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);
--
2.12.2.564.g063fe858b8
More information about the ffmpeg-devel
mailing list