mpg123: rewrite, handle the case 1 input => x outputs
commit22499583c642dbcb9becc9386d1fc8a0952942dd
authorThomas Guillem <thomas@gllm.fr>
Tue, 11 Oct 2016 11:55:51 +0000 (11 13:55 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 12 Oct 2016 08:47:18 +0000 (12 10:47 +0200)
treeda7117b94e68b6e13ee0cb1e0272e796ee80daf6
parent366c50a5a4313c6e1bde8c37dbe5ccea45cd98c5
mpg123: rewrite, handle the case 1 input => x outputs

When the mpeg_audio packetizer is not used, input blocks can contain several
frames. The mpg123_decode_frame function is now called if *pp_block is NULL and
can return an output frame if there is enough data in mpg123 internal input.

The audio format is now updated when mpg123 report a format change.
modules/codec/mpg123.c