cisco/openh264 — pull request #322 by volvet (2014-02-20 05:04:39+00:00)
Title: init the spatial last spatial picture if excption

this patch is try to fix the incorrect exception handle logic which is discussed before in preprocess module.
the origin code:
if the iCurTid or m_uiSpatialLayersInTemporal is invalid, it will return false and need to force IDR frame. But it is lack of re-order the spatial picture list, then it cause the memory conflict when exchange the last spatial pictures(encoding next frame).

The modification here means to init the last spatial pictures in the exception handle, it is assume that the spatial picture list is in initialize status(so need not to reorder it). Its OK because next frame should be IDR.

Review:
https://rbcommons.com/s/OpenH264/r/99/