Commit a9f5941b authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

mmal/codec: Use default input buffer count

As we use packetized input we normally don't need more than a handful of input
buffers. Using the default of mmal, which is 20, seems absolutely sufficient.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2d8c51b9
...@@ -168,7 +168,7 @@ static int OpenDecoder(decoder_t *dec) ...@@ -168,7 +168,7 @@ static int OpenDecoder(decoder_t *dec)
goto out; goto out;
} }
sys->input->buffer_size = sys->input->buffer_size_recommended; sys->input->buffer_size = sys->input->buffer_size_recommended;
sys->input->buffer_num = __MAX(sys->input->buffer_num_recommended, 80); sys->input->buffer_num = sys->input->buffer_num_recommended;
status = mmal_port_enable(sys->input, input_port_cb); status = mmal_port_enable(sys->input, input_port_cb);
if (status != MMAL_SUCCESS) { if (status != MMAL_SUCCESS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment