GNOME Bugzilla – Bug 570995
gstrtph264pay.c fails to build with gcc 4.4.0
Last modified: 2009-02-24 17:38:11 UTC
0.10.13.2 doesn't build: http://koji.fedoraproject.org/koji/getfile?taskID=1113738&name=build.log http://koji.fedoraproject.org/koji/getfile?taskID=1113739&name=build.log Error is: cc1: warnings being treated as errors gstrtph264pay.c: In function 'is_nal_equal': gstrtph264pay.c:452: error: operation on 'len' may be undefined gstrtph264pay.c:455: error: operation on 'len' may be undefined gstrtph264pay.c:459: error: operation on 'len' may be undefined
Created attachment 128366 [details] [review] fix compiler warnings Attempt to fix compiler warnings while keeping the code more or less like it is. Untested.
Patch works. http://koji.fedoraproject.org/koji/getfile?taskID=1116945&name=build.log
In the lack of any more enlightened comments, and given that this patch looks correct to me - please commit it.
ping ;)
Committed, thanks: commit 8bfffbb0dab1f082e26507ecce2404b686725987 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Tue Feb 24 17:35:46 2009 +0000 rtp: Fix compiler warning in h264 payloader Fix an undefined behaviour warning from gcc 4.4.0 Patch By: Tim-Philipp Müller <tim.muller@collabora.co.uk> Fixes: #570995 Signed-Off-By: Jan Schmidt <jan.schmidt@sun.com>