Fix checkCRA() for field pictures
For sequence of field pictures this is valid:
- [...]
- POC=9 (picture from previous GOP)
- POC=10 (CRA) -> has POC 9 as INACTIVE ref
- POC=11 (TRAIL) -> has POC 9 as INACTIVE ref
- POC=12 (RASL) -> refer to POC 9
- POC=13 (RASL) -> refer to POC 9
checkCRA() fails on POC=11 (TRAIL) because it has INACTIVE ref from previous GOP. This would be OK for frame pictures.
But for sequence of field pictures it is allowed to have 1 TRAIL field picture between IRAP and leading pictures.
So TRAIL picture should be able to preserve ref pictures from previous GOP for RASL pictures.
Edited by Nikolay Shostak