libstagefright: Use proper ctts offset
Calculate ctts offset as difference between composition time and decoding time, and add one frame duration and delta value of 500Us for B-frames. Avoid writing 0 sample count ctts entry. Change-Id: I4e94ddc48e007d79b35060febfb4b74ee057476d
Loading