]> git.sesse.net Git - vlc/commit
avcodec: cleanup encodeAudio
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 1 Apr 2013 10:41:31 +0000 (13:41 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 1 Apr 2013 10:50:02 +0000 (13:50 +0300)
commit8fc2c5f52c2fdfcbcd5fcd4b9bed8413a30d9677
treeac2500c28a20421d3ea2d5c0754491e07aeb1a87
parent64d1ed4e8900c902d3f1e4a29f8e835c09eb44e0
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
modules/codec/avcodec/encoder.c