ffplay: use swr_set_compensation for audio synchronization
authorMarton Balint <cus@passwd.hu>
Thu, 29 Dec 2011 20:05:38 +0000 (21:05 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 11 Jan 2012 22:05:33 +0000 (23:05 +0100)
commit6f06545b26222000efd96df2371f7c58f5df9b61
tree1e77cc577d687c31d8cd9684011dc35d06a9658c
parent5387f9917f1e5a053824f9ba68545b74a2fc225b
ffplay: use swr_set_compensation for audio synchronization

Also change synchronize_audio to only calculate the wanted number of samples
instead of doing the actual synchronization, and make swr_convert handle the
sample addition or deletion.

This new method replaces the old buggy way which simply deleted or
multiplied samples.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c