[x265] [PATCH] piclist: ensure a TComPic is not enqueued in two lists at once
Steve Borho
steve at borho.org
Fri Oct 11 03:03:10 CEST 2013
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1381443696 18000
# Thu Oct 10 17:21:36 2013 -0500
# Node ID df2a611e831e945baf84100ab4ed979e5ce8ed43
# Parent 71fca64942a66c412f4c2d5febbe2acee719cb79
piclist: ensure a TComPic is not enqueued in two lists at once
diff -r 71fca64942a6 -r df2a611e831e source/common/piclist.cpp
--- a/source/common/piclist.cpp Thu Oct 10 15:36:31 2013 -0500
+++ b/source/common/piclist.cpp Thu Oct 10 17:21:36 2013 -0500
@@ -28,6 +28,7 @@
void PicList::pushFront(TComPic& pic)
{
+ assert(!pic.m_next && !pic.m_prev); // ensure pic is not in a list
pic.m_next = m_start;
pic.m_prev = NULL;
@@ -45,6 +46,7 @@
void PicList::pushBack(TComPic& pic)
{
+ assert(!pic.m_next && !pic.m_prev); // ensure pic is not in a list
pic.m_next = NULL;
pic.m_prev = m_end;
More information about the x265-devel
mailing list