• Simon Morlat's avatar
    Refactoring and fixes in MediaCodec. · e5a2292e
    Simon Morlat authored
    This fixes:
    - broken encoding in 640x480 on moto g2 (image size in bytes wasn't computed correctly)
    - decorelate input and output buffer handling in process methods (improves latency)
    - fixes a bug in the decoder where two or more frames could be agregated by mistake if one of them was corrupted.
    
    This rework also adds better error handling.
    e5a2292e