Fix #1419: apply reference pic marking before getting a new pic buffer

6 jobs for !1970 with fix_1419 in 15 minutes and 45 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Build
passed #19757
macos
build_macos

00:04:37

passed #19758
ubuntu1604
build_ubuntu1604

00:06:08

passed #19759
ubuntu1804
build_ubuntu1804

00:06:15

passed #19760
ubuntu1804-gcc8
build_ubuntu1804-gcc8

00:06:44

passed #19761
vc191x
build_vc191x

00:15:45

passed #19762
vc192x
build_vc192x

00:14:23