The only difference between two examples was a setting of g_error_resilient flag in error-resilient example. Moving this functionality into simple_encoder with additional command line option. Change-Id: I0245793320125926e1bf208cc1e87aef39ca478d