I am trying to completely remove output buffer from decoder output buffer of media codec, as
while (true) {
AMediaCodecBufferInfo info;
auto status = AMediaCodec_dequeueOutputBuffer(codec, &info, 0);
if (status >= 0) {
AMediaCodec_releaseOutputBuffer(codec, status, false);
} else {
break;
}
}
For the purpose of seek, but when i start queuing input buffer, i am still getting older 1-2 frames as output. Can anyone point me the direction, Thanks,