refer:https://software.intel.com/en-us/forums/topic/389609
The Media SDK decode sample should handle this case by default without the need to reset the pipeline. But this assumes that the new resolution is smaller
(W and H) so that the new decoded frames fits on the pre-allocated surfaces for decode. If the new resolution is greater than the frames size allocated at pipeline initialization, then the application must restart decoder, free surfaces, and then allocate
surfaces that can fit the new frame resolution.
you can refer: http://developer.android.com/reference/android/media/MediaCodec.html
or http://stackoverflow.com/questions/22820668/mediacodec-resolution-change-in-video-stream-causes-decoder-acodec-to-assert