Ticket #1148: patch_1148.txt

File patch_1148.txt, 638 bytes (added by karlsharman, 11 years ago)
Line 
1Index: source/Lib/TLibEncoder/TEncSlice.cpp
2===================================================================
3--- source/Lib/TLibEncoder/TEncSlice.cpp        (revision 2966)
4+++ source/Lib/TLibEncoder/TEncSlice.cpp        (working copy)
5@@ -193,7 +193,9 @@
6   // depth computation based on GOP size
7   Int depth;
8   {
9-    Int poc = rpcSlice->getPOC()%m_pcCfg->getGOPSize();
10+    Int poc=rpcSlice->getPOC();
11+    if (isField) poc/=2;
12+    poc = poc%m_pcCfg->getGOPSize();
13     if ( poc == 0 )
14     {
15       depth = 0;
16@@ -217,7 +219,9 @@
17       }
18     }
19   }
20
21+
22+  if (isField && depth>0) depth-=1;
23+
24   // slice type
25   SliceType eSliceType;
26