# HG changeset patch
# User Steve Borho <[email protected]>
# 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;
 
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to