Revert "Revert "libstagefright: Fix incorrectness nPortIndex value for QueryCodec""

This reverts commit 43b58a4fa272983db7ca22ebf592305429b1bba0.