- changed status to resolved
Error in SEI when interlace encoding is used
Issue #59
resolved
Hi,
There is error in the picture struct in SEI when interlace encoding mode is used.
The err is when interlaceMode=1, the output picStruct will always be 2 (bot)
the code is at source/encoder/frameencoder.cpp
sei.m_picStruct = (slice->getPOC() & 1) && m_cfg->param->interlaceMode == 2 ? 1 /* top */ : 2 /* bot */;
Tested fix for this is as follows:
sei.m_picStruct = (slice->getPOC() & 1) ? ( m_cfg->param->interlaceMode == 2 ? 1 /* top */ : 2 /* bot */) : ( m_cfg->param->interlaceMode == 2 ? 2 /* bot */ : 1 /* top */) ;
Thanks!
Comments (1)
-
- Log in to comment
fixed by <<cset 8eb8200a3449>>