Guest User

Untitled

a guest
Oct 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. /* Disabled, because that causes serious problems.
  2. // Some magic code for detecting the incorrect decoding of interlaced frames ...
  3. // TODO : necessary to make it better, and preferably on the side of ffmpeg ...
  4. if (m_nfield_pic_flag && m_nfield_pic_flag == m_DXVAPicParams.field_pic_flag && m_nRefPicFlag == m_DXVAPicParams.RefPicFlag) {
  5. if (m_nPrevOutPOC == m_nOutPOC && m_nOutPOC == INT_MIN) {
  6. m_nBrokenFramesFlag_POC++;
  7. }
  8. m_nBrokenFramesFlag++;
  9. } else {
  10. m_nBrokenFramesFlag = 0;
  11. m_nBrokenFramesFlag_POC = 0;
  12. }
  13. m_nfield_pic_flag = m_DXVAPicParams.field_pic_flag;
  14. m_nRefPicFlag = m_DXVAPicParams.RefPicFlag;
  15. m_nPrevOutPOC = m_nOutPOC;
  16.  
  17. if (m_nBrokenFramesFlag > 4) {
  18. m_nBrokenFramesFlag = 0;
  19. if (m_nBrokenFramesFlag_POC > 1) {
  20. TRACE_H264("CDXVADecoderH264::DecodeFrame() : Detected broken frames ... flush data\n");
  21. m_nBrokenFramesFlag_POC = 0;
  22. Flush();
  23. return S_FALSE;
  24. }
  25. }
  26. //
  27. */
Add Comment
Please, Sign In to add comment