Merge "aacdec: fix error handling" into rvc-dev am: 50b8acd4e1 am: fb1290cb15 am: 290a16b146

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/12002255

Change-Id: Icbba40c06eead1b2a35347fc836a3a2b4716b4f0
diff --git a/media/codec2/components/aac/C2SoftAacDec.cpp b/media/codec2/components/aac/C2SoftAacDec.cpp
index 9884733..677f316 100644
--- a/media/codec2/components/aac/C2SoftAacDec.cpp
+++ b/media/codec2/components/aac/C2SoftAacDec.cpp
@@ -791,7 +791,6 @@
 
                 // After an error, replace bufferSize with the sum of the
                 // decodedSizes to resynchronize the in/out lists.
-                inInfo.decodedSizes.pop_back();
                 inInfo.bufferSize = std::accumulate(
                         inInfo.decodedSizes.begin(), inInfo.decodedSizes.end(), 0);