Fixes ticket #2533.
decoder Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk