avaudenc: fix output timestamping
authorTim-Philipp Müller <tim@centricular.net>
Sat, 1 Dec 2012 23:05:23 +0000 (23:05 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 1 Dec 2012 23:05:23 +0000 (23:05 +0000)
commit819d4d2a04178bc71ea5eef0dc369024b83984a3
tree081a32d1c96def5b51c72c4847d9fd4653ecda91
parent4132a73f0e2eb4e8eff5b1066535d79cf010eace
avaudenc: fix output timestamping

We need to pass the number of samples encode in the output buffer
to gst_audio_encoder_finish_frame(), not the number of frames.
Fixes output timestamps being way too small, and transcoding
problems.

https://bugzilla.gnome.org/show_bug.cgi?id=689398
ext/libav/gstavaudenc.c