Forcing low_delay can be useful, even if not officially supported.
Unified · Split
| @@ -671,9 +671,11 @@ FF_ENABLE_DEPRECATION_WARNINGS · 670 unmodified lines | |||
| 671 | } | 671 | } |
| 672 | 672 | ||
| 673 | if (s->avctx->flags & AV_CODEC_FLAG_LOW_DELAY) { | 673 | if (s->avctx->flags & AV_CODEC_FLAG_LOW_DELAY) { |
| 674 | if (s->codec_id != AV_CODEC_ID_MPEG2VIDEO) { | 674 | if (s->codec_id != AV_CODEC_ID_MPEG2VIDEO && |
| 675 | s->strict_std_compliance >= FF_COMPLIANCE_NORMAL) { | ||
| 675 | av_log(avctx, AV_LOG_ERROR, | 676 | av_log(avctx, AV_LOG_ERROR, |
| 676 | "low delay forcing is only available for mpeg2\n"); | 677 | "low delay forcing is only available for mpeg2, " |
| 678 | "set strict_std_compliance to 'unofficial' or lower in order to allow it\n"); | ||
| 677 | return -1; | 679 | return -1; |
| 678 | } | 680 | } |
| 679 | if (s->max_b_frames != 0) { | 681 | if (s->max_b_frames != 0) { |