[FFmpeg-devel] [PATCH]lswr/rematrix: Remove an aggressive loop optimization / undefined behaviour

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Feb 26 13:12:02 EET 2017


2017-02-24 22:24 GMT+01:00 Michael Niedermayer <michael at niedermayer.cc>:
> On Fri, Feb 24, 2017 at 11:21:54AM +0100, Carl Eugen Hoyos wrote:
>> Hi!
>>
>> Attached patch fixes a gcc warning (tested 6.3.0).
>>
>> Please comment, Carl Eugen
>
>>  rematrix.c |    7 ++++---
>>  1 file changed, 4 insertions(+), 3 deletions(-)
>> 38e092f00db2021f4dfb7677cc1b18bc66808754  0001-lswr-rematrix-Remove-an-aggressive-loop-optimization.patch
>> From 422e4b2fba6f3c9fbf930908474029cb8088bc46 Mon Sep 17 00:00:00 2001
>> From: Carl Eugen Hoyos <cehoyos at ag.or.at>
>> Date: Fri, 24 Feb 2017 11:16:26 +0100
>> Subject: [PATCH] lswr/rematrix: Remove an aggressive loop optimization.
>>
>> Fixes undefined behaviour and a gcc warning:
>> libswresample/rematrix.c:376:47: warning: iteration 64 invokes undefined behavior
>> ---
>>  libswresample/rematrix.c |    7 ++++---
>>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> should be ok

Patch applied.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list