videodecoder: allow parse function to not use all data on adapter