On Wed, Apr 24, 2019 at 5:04 AM Carl Eugen Hoyos <ceffm...@gmail.com> wrote: > > 2019-04-21 15:21 GMT+02:00, Jun Zhao <g...@videolan.org>: > > ffmpeg | branch: master | Jun Zhao <barryjz...@tencent.com> | Sun Apr 21 > > 12:37:29 2019 +0800| [b272d5b9b6e189cb855ad393edf8524066bd0d07] | committer: > > Jun Zhao > > > > lavfi/frei0r: Fixes the compilation warnings > > > > Fixes the compilation warnings > > > > Reviewed-by: Paul B Mahol <one...@gmail.com> > > Signed-off-by: Jun Zhao <barryjz...@tencent.com> > > > >> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b272d5b9b6e189cb855ad393edf8524066bd0d07 > > --- > > > > libavfilter/vf_frei0r.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c > > index c775ed1d99..165fbd7d81 100644 > > --- a/libavfilter/vf_frei0r.c > > +++ b/libavfilter/vf_frei0r.c > > @@ -127,7 +127,7 @@ static int set_param(AVFilterContext *ctx, > > f0r_param_info_t info, int index, cha > > break; > > > > case F0R_PARAM_STRING: > > - val.str = param; > > + val.str = (f0r_param_string *)param; > > How can I test this? > (Did you test it?) > > Carl Eugen
You can build ffmpeg with frei0r in Ubuntu 18.04, if don't have this patch, it's will get the warning like: libavfilter/vf_frei0r.c:131:17: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] val.str = param; ^ gcc -v get out put as follow: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".