I'm compressing a media file ( decoding and encoding ) with mediaCodec API, I'm decoding it from a decoder of size 4MB (YUV format).
When I try to enqueue this decoded file to the encoder I'm getting an Illegal state Exception. Later, I found out hat the reason is that the encoder input buffer doesn't have the required buffer size. Is there anybody, who can sort out the problem?.