gstrtpg722pay: Compensate for clockrate vs. samplerate difference
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 10 Oct 2011 18:01:23 +0000 (19:01 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 10 Oct 2011 20:50:28 +0000 (21:50 +0100)
commitbf65acf11fd107376e5591e24f0d93de05057fab
treefd1f34dece75d831210bcad7241a15814bed9894
parent95db64851666bc3c5e852da77913764978588194
gstrtpg722pay: Compensate for clockrate vs. samplerate difference

The RTP clock-rate used for G722 is 8000, even though the samplerate is
16000. Compensate for this by pretending G722 has 8 bits per sample
instead of the 4 bits as if it were a codec that ran at half the speed,
but with twice the number of bits. Fixes #661376
gst/rtp/gstrtpg722pay.c