avcodec/mediacodecdec: refactor pts handling
authorAman Gupta <aman@tmm1.net>
Tue, 24 Apr 2018 20:51:15 +0000 (13:51 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 25 Apr 2018 17:53:54 +0000 (10:53 -0700)
commitd8e92a89edd8e73cdc7f125f078c576df10b66f2
treea55105633f9380ec8b597701535330717499b985
parent7a4639b1eba31f88490c85663c75fb1414307680
avcodec/mediacodecdec: refactor pts handling

Also fixes a bug where EOS buffer was sent with incorrect
pts when not using surface generation.

Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/mediacodecdec_common.c