• Martin Storsjö's avatar
    omxil: Make sure i_channels is nonzero before dividing by it · fab34784
    Martin Storsjö authored
    At startup of the decoder, i_channels might be set to 0 if the decoder
    hasn't processed the sent CODECCONFIG data yet. (In these cases, the
    returned buffers are 0 bytes long so we don't miss anything either.)
    A port reconfigure event is sent in these cases, so i_channels gets
    initialized to the right value before we handle any later buffers with
    actual content.
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
    fab34784
omxil.c 68.6 KB