Can the output buffer pointer be NULL in any case?
Output buffer pointer will be NULL in two cases: • If maxDisplayDelay is set to be N (non zero) then for first N process calls the output buffer will be NULL. • In case of NAL stream decoding, if sufficient data is not available to decode a frame, decoder will return NULL buffer expecting more input in next process call. In such scenario the same output buffer should be passed to the decoder in the next process call.