ffs: revert to the old ffmpeg api in ffs_adec()
commitbcf8322de9d8b5d94f82db6fc6c6266fd5616fa7
authorAli Gholami Rudi <ali@rudi.ir>
Fri, 27 Apr 2012 05:11:17 +0000 (27 09:41 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Fri, 27 Apr 2012 05:11:17 +0000 (27 09:41 +0430)
tree4a14e7f1b308174f695aefe2c9dc5a412e21ebb9
parenta6036fb61e47af355ff3918f1dd57f330216ff47
ffs: revert to the old ffmpeg api in ffs_adec()

The new function avcodec_decode_audio4() relies on the new
AFPacket.nb_samples.  So I cannot use frame->linesize[0] to
get the size of the audio data.  This means I should just
redo most of the things done in the avcodec_decode_audio3()
wrapper around avcodec_decode_audio4(); it is undeniably
ugly.  So I'll stick with avcodec_decode_audio3() for now.
I hope one day the ffmpeg people learn how to design the API.

Reported-by: Sara Fauzia <sfauzia@fas.harvard.edu>
ffs.c