Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37704450
en ru br
ALT Linux repos
S:4.5.1-alt1
5.0: 3.2.10-alt1.svn20080126.1
4.1: 3.2.10-alt1.svn20080126.1
4.0: 3.2.10-alt0.svn20080126.M40.1
3.0: 3.1.19-alt1

Group :: Video
RPM: motion

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: motion-4.1.1-ffmpeg4.patch
Download


diff -ur motion-4.1.1.orig/ffmpeg.c motion-4.1.1/ffmpeg.c
--- motion-4.1.1.orig/ffmpeg.c	2018-10-15 06:23:48.957252887 +0000
+++ motion-4.1.1/ffmpeg.c	2018-10-15 06:24:07.698095474 +0000
@@ -538,7 +538,7 @@
         /* The selection of 8000 in the else is a subjective number based upon viewing output files */
         if (ffmpeg->vbr > 0){
             ffmpeg->vbr =(int)(((100-ffmpeg->vbr)*(100-ffmpeg->vbr)*(100-ffmpeg->vbr) * 8000) / 1000000) + 1;
-            ffmpeg->ctx_codec->flags |= CODEC_FLAG_QSCALE;
+            ffmpeg->ctx_codec->flags |= AV_CODEC_FLAG_QSCALE;
             ffmpeg->ctx_codec->global_quality=ffmpeg->vbr;
         }
     }
@@ -663,7 +663,7 @@
       ffmpeg->ctx_codec->strict_std_compliance = -2;
       ffmpeg->ctx_codec->level = 3;
     }
-    ffmpeg->ctx_codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
+    ffmpeg->ctx_codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
 
     retcd = ffmpeg_set_quality(ffmpeg);
     if (retcd < 0){
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin