Set pic_present at end of pic_init instead of beginning

Bug: 37469795

In pic_init, pic_present was set in the beggining. If pic_present
was set, process and buffer managment were done. For an error
stream, a crash occured when pic_init returned with error after setting
pic_present.

Change-Id: Iea42e6ad2bc5a74517188fa5e4cc434bb96d46c7
(cherry picked from commit d012a1ffc0a260de924b7af5e3ba30eb65526f8a)
1 file changed