mediaCodec android- How to do decoding encoding fr

2019-08-01 09:22发布

问题:

I want to decode and then encode a video file. The example I found on bigflakes is using the Inputsurface for decoding. I want to directly provide the decoded data to the encoder as input. I am getting error that the output buffer from decoder is null, when I provide that as input to the encoder. Any suggestions ?

Thanks