summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorposciak@chromium.org <posciak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 00:12:38 +0000
committerposciak@chromium.org <posciak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 00:12:38 +0000
commit67db2be5e41d987311ef9d84cc9cf62e7b4f7817 (patch)
tree1abdd74745ef6f81a057ede29f7fd5473d1d395b
parent3adeae51afc87da5a0153080a541e46619e417fb (diff)
downloadchromium_src-67db2be5e41d987311ef9d84cc9cf62e7b4f7817.zip
chromium_src-67db2be5e41d987311ef9d84cc9cf62e7b4f7817.tar.gz
chromium_src-67db2be5e41d987311ef9d84cc9cf62e7b4f7817.tar.bz2
VAVDA: fix improper usage of vector::erase()
Remove erroneous increment of iterator while erasing. BUG=chromium-os:34499 TEST=video playback TBR=fischman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10917304 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157249 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/common/gpu/media/h264_dpb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/common/gpu/media/h264_dpb.cc b/content/common/gpu/media/h264_dpb.cc
index 2de3f97..a512644 100644
--- a/content/common/gpu/media/h264_dpb.cc
+++ b/content/common/gpu/media/h264_dpb.cc
@@ -30,7 +30,7 @@ void H264DPB::RemoveByPOC(int poc) {
void H264DPB::RemoveUnused() {
for (Pictures::iterator it = pics_.begin(); it != pics_.end(); ) {
if ((*it)->outputted && !(*it)->ref)
- pics_.erase(it++);
+ it = pics_.erase(it);
else
++it;
}