use picture-level new seq begin detection for output functions
Merge pull request #1652 from huili2/newseq_bugfix

use picture-level new seq begin detection for output functions