[vlc-commits] avcodec: cleanup encodeAudio

Ilkka Ollakka git at videolan.org
Mon Apr 1 12:52:07 CEST 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Apr  1 13:41:31 2013 +0300| [8fc2c5f52c2fdfcbcd5fcd4b9bed8413a30d9677] | committer: Ilkka Ollakka

avcodec: cleanup encodeAudio

Handle better cases when we don't have input frame size
same as encoder input frame size. Also gather input samples
untill we get full frame fillet and not just next block.

Set length based on used samples and not frame_size

Also try to make memory calculations cleaner so they don't
overshoot and write stuff all over.

Refs #8265

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fc2c5f52c2fdfcbcd5fcd4b9bed8413a30d9677
---

 modules/codec/avcodec/encoder.c |  174 +++++++++++++++++++++------------------
 1 file changed, 96 insertions(+), 78 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=8fc2c5f52c2fdfcbcd5fcd4b9bed8413a30d9677


More information about the vlc-commits mailing list