motion: add patch for ffmpeg-4.0.1.

This commit is contained in:
Johannes Brechtmann 2018-05-03 21:57:34 +02:00 committed by Jürgen Buchmüller
parent f52fd14c07
commit 7ee17e0b0a
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,21 @@
--- ffmpeg.c 2017-12-10 02:05:49.000000000 +0100
+++ ffmpeg.c 2018-05-03 21:53:50.044464387 +0200
@@ -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){

View file

@ -1,7 +1,7 @@
# Template file for 'motion'
pkgname=motion
version=4.1.1
revision=1
revision=2
wrksrc="motion-release-${version}"
build_style=gnu-configure
hostmakedepends="automake pkg-config"