codecs: Add minimal state validation
... to prevent requesting slice decoding before the preparation. For instance, baseclass should not request decoding a slice if there is no parsed valid sequence headers, since subclass is most likely not ready to decoding it.
Edited by Seungha Yang