OSDN Git Service

Cast sample_fmt (as read from bitstream as a 16-bit value) to int16, so that
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 17 Mar 2010 15:14:18 +0000 (15:14 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 17 Mar 2010 15:14:18 +0000 (15:14 +0000)
commita7a85dc4c2e3fa818573ab1adc547758fe95b539
treee78cba71241c1645d2d0721da243c4cc91512cf1
parent9109cdca97d22441315b366011949276e774c1a5
Cast sample_fmt (as read from bitstream as a 16-bit value) to int16, so that
negative values, e.g. SAMPLE_FMT_NONE (-1), are read correctly also.

Originally committed as revision 22585 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/ffmdec.c