]> git.sesse.net Git - vlc/commit
transcode: send NULL packet to audio encoder when closing
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 19 Oct 2012 09:20:58 +0000 (12:20 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 19 Oct 2012 09:22:45 +0000 (12:22 +0300)
commit940cf07d668f41d3d01ff87f4647afc37b4dca80
tree43ee29a9841a36f6c7dfbbc5b3bbeef1afc00f68
parent4445e5b31ce9ed0a97f14e25c5f5419093957b08
transcode: send NULL packet to audio encoder when closing

As with Video-encoders, audio encoder can flush buffers in that case.
Currently avcodec doesn't handle flushing and other encoders in this
changeset (flac,speex,twolame,vorbis) have only boilerplate to check
against NULL input so they don't crash.
modules/codec/avcodec/encoder.c
modules/codec/flac.c
modules/codec/speex.c
modules/codec/twolame.c
modules/codec/vorbis.c
modules/stream_out/transcode/transcode.c