stagefright: fix PPS packaging into AVCC

Bug: 28943869
Change-Id: Iefe9ef3ec4ec4fe31cd5b0e90f1796130f8e9302
diff --git a/media/libstagefright/Utils.cpp b/media/libstagefright/Utils.cpp
index c461ca0..c343dee 100644
--- a/media/libstagefright/Utils.cpp
+++ b/media/libstagefright/Utils.cpp
@@ -1114,7 +1114,7 @@
     int numpicparamsoffset = avccidx;
     avccidx++;
     do {
-        i = findNextNalStartCode(csd0->data() + i, csd0->size() - i) - csd0->data();
+        i = findNextNalStartCode(csd1->data() + i, csd1->size() - i) - csd1->data();
         ALOGV("block at %zu, last was %d", i, lastparamoffset);
         if (lastparamoffset > 0) {
             int size = i - lastparamoffset;