libstagefright: Fix incorrectness nPortIndex value for QueryCodec
                The query index is wrong, it will make a death loop in
my ME722 when get resource thumbnail for MPEG4 video.

Change-Id: I64532156e762b847a8eae59560fb828549c29519
Merge pull request #9 from CyanogenMod/cm-10.1

libstagefright: Fix incorrectness nPortIndex value for QueryCodec