mm-video: vdec: Handle time stamp check for NC-VOP

When vidc.dec.debug.ts is enabled, pop the time stamp
from the TS list only when the FBD length is greater than 0.
This handles the not coded VOP FBD case where both filled
length and time stamp received from the driver are zero.

CRs-Fixed: 500471

Change-Id: I20f731c0dfe44d57471299b6531fa32c64d8ab3c
diff --git a/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
index 9b32e9b..03111fc 100644
--- a/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -6948,6 +6948,22 @@
     if (buffer->nFilledLen > 0) {
       time_stamp_dts.get_next_timestamp(buffer,
         is_interlaced && is_duplicate_ts_valid);
+        if (m_debug_timestamp)
+        {
+          {
+            OMX_TICKS expected_ts = 0;
+            m_timestamp_list.pop_min_ts(expected_ts);
+            if (is_interlaced && is_duplicate_ts_valid) {
+              m_timestamp_list.pop_min_ts(expected_ts);
+            }
+            DEBUG_PRINT_LOW("\n Current timestamp (%lld),Popped TIMESTAMP (%lld) from list",
+                           buffer->nTimeStamp, expected_ts);
+
+            if (buffer->nTimeStamp != expected_ts) {
+              DEBUG_PRINT_ERROR("\n ERROR in omx_vdec::async_message_process timestamp Check");
+            }
+          }
+        }
     } else {
       m_inp_err_count++;
       time_stamp_dts.remove_time_stamp(
@@ -6955,23 +6971,7 @@
                 is_interlaced && is_duplicate_ts_valid);
     }
 
-    if (m_debug_timestamp)
-    {
-      {
-        OMX_TICKS expected_ts = 0;
-        m_timestamp_list.pop_min_ts(expected_ts);
-        if (is_interlaced && is_duplicate_ts_valid) {
-          m_timestamp_list.pop_min_ts(expected_ts);
-        }
-        DEBUG_PRINT_LOW("\n Current timestamp (%lld),Popped TIMESTAMP (%lld) from list",
-                       buffer->nTimeStamp, expected_ts);
 
-        if (buffer->nTimeStamp != expected_ts)
-        {
-          DEBUG_PRINT_ERROR("\n ERROR in omx_vdec::async_message_process timestamp Check");
-        }
-      }
-    }
   }
   if (m_cb.FillBufferDone)
   {