libmix:  mix_vbp - Fix green artifacts in CNN videos

BZ: 9679

Flash video streamed from CNN site can have errors in the bitstream,
missing reference frames, etc, causing green artifacts in the decoded video.

This fix will skip video frames for which reference frames are not available,
displaying only frames decoded correctly and increasing robustness.  Change
to mix_vbp to return NAL unit type so that reference IDR frames can be
tracked in MixVideo.

Consequences are that black video will be displayed until a correct video
bitstream is received from the server.

Change-Id: Ie03ef8f7bf3ac96bb4bb683659236ad2b7afbf3f
Signed-off-by: Linda Cline <linda.s.cline@intel.com>
Reviewed-on: http://android.intel.com:8080/20165
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Chen, Weian <weian.chen@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
2 files changed