http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60904
Bug ID: 60904
Summary: ffmpeg built with gcc 4.9 RC produces incorrect
shorten playback code
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: cehoyos at ag dot or.at
gcc 4.9.0 RC miscompiles FFmpeg's shorten decoder, this is reproducible with
current FFmpeg git head and the last release, 2.2.1:
The problem can be reproduced with the fate tests (FFmpeg's self test, the
samples are large):
$ ./configure && make ffmpeg
$ make SAMPLES=fate-samples fate-rsync
$ make SAMPLES=fate-samples fate-shorten
Or you can try to convert or playback the sample:
$ rsync -t
rsync://fate-suite.ffmpeg.org/fate-suite/lossless-audio/luckynight-partial.shn
.
$ ffmpeg -i luckynight-partial.shn out.wav
$ ffplay luckynight-partial.shn
The sample is supposed to be nine seconds long but only two seconds are played
/ converted.
Works fine with many previous versions of gcc, including 4.8.2 and 4.7.2.
This may or may not be related to Bug 60902
I originally found it when testing FFmpeg ticket #3559:
https://trac.ffmpeg.org/ticket/3559