[FFmpeg-cvslog] ffv1enc: favor version 3 over 2 unless -strict -2 is set

Michael Niedermayer git at videolan.org
Sun Apr 28 01:08:01 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 27 19:43:55 2013 +0200| [7f138310fbef540fe30ee7cbcf0ee5f5de2456ef] | committer: Michael Niedermayer

ffv1enc: favor version 3 over 2 unless -strict -2 is set

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f138310fbef540fe30ee7cbcf0ee5f5de2456ef
---

 libavcodec/ffv1enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index d897dc4..7b4c08e 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -647,7 +647,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
     if ((avctx->flags & (CODEC_FLAG_PASS1|CODEC_FLAG_PASS2)) || avctx->slices>1)
         s->version = FFMAX(s->version, 2);
 
-    if (avctx->level == 3) {
+    if (avctx->level == 3 || (s->version==2 && avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)) {
         s->version = 3;
     }
 



More information about the ffmpeg-cvslog mailing list